mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-03 03:57:41 +01:00
Show replay button on the current chapter. (#4706)
This commit is contained in:
parent
d405718545
commit
5661a85eab
@ -82,6 +82,7 @@ public class ChaptersListAdapter extends RecyclerView.Adapter<ChaptersListAdapte
|
||||
if (position == currentChapterIndex) {
|
||||
int playingBackGroundColor = ThemeUtils.getColorFromAttr(context, R.attr.currently_playing_background);
|
||||
holder.itemView.setBackgroundColor(playingBackGroundColor);
|
||||
holder.secondaryActionIcon.setImageResource(ThemeUtils.getDrawableFromAttr(context, R.attr.av_replay));
|
||||
} else {
|
||||
holder.itemView.setBackgroundColor(ContextCompat.getColor(context, android.R.color.transparent));
|
||||
}
|
||||
|
9
core/src/main/res/drawable/ic_av_replay_black_48dp.xml
Normal file
9
core/src/main/res/drawable/ic_av_replay_black_48dp.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:width="48dp"
|
||||
android:height="48dp">
|
||||
<path
|
||||
android:pathData="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6 -6 6 -6 -2.69 -6 -6H4c0 4.42 3.58 8 8 8s8 -3.58 8 -8 -3.58 -8 -8 -8z"
|
||||
android:fillColor="#000000" />
|
||||
</vector>
|
9
core/src/main/res/drawable/ic_av_replay_white_48dp.xml
Normal file
9
core/src/main/res/drawable/ic_av_replay_white_48dp.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:width="48dp"
|
||||
android:height="48dp">
|
||||
<path
|
||||
android:pathData="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6 -6 6s-6 -2.69 -6 -6H4c0 4.42 3.58 8 8 8s8 -3.58 8 -8S16.42 5 12 5z"
|
||||
android:fillColor="#FFFFFF" />
|
||||
</vector>
|
@ -7,6 +7,7 @@
|
||||
<attr name="av_fast_forward" format="reference"/>
|
||||
<attr name="av_pause" format="reference"/>
|
||||
<attr name="av_play" format="reference"/>
|
||||
<attr name="av_replay" format="reference"/>
|
||||
<attr name="av_skip" format="reference"/>
|
||||
<attr name="av_rewind" format="reference"/>
|
||||
<attr name="ic_delete" format="reference"/>
|
||||
|
@ -32,6 +32,7 @@
|
||||
<item name="av_download">@drawable/ic_download_black</item>
|
||||
<item name="av_pause">@drawable/ic_av_pause_black_48dp</item>
|
||||
<item name="av_play">@drawable/ic_av_play_black_48dp</item>
|
||||
<item name="av_replay">@drawable/ic_av_replay_black_48dp</item>
|
||||
<item name="av_rewind">@drawable/ic_av_fast_rewind_black_48dp</item>
|
||||
<item name="av_fast_forward">@drawable/ic_av_fast_forward_black_48dp</item>
|
||||
<item name="av_skip">@drawable/ic_av_skip_black_48dp</item>
|
||||
@ -113,6 +114,7 @@
|
||||
<item name="av_fast_forward">@drawable/ic_av_fast_forward_white_48dp</item>
|
||||
<item name="av_pause">@drawable/ic_av_pause_white_48dp</item>
|
||||
<item name="av_play">@drawable/ic_av_play_white_48dp</item>
|
||||
<item name="av_replay">@drawable/ic_av_replay_white_48dp</item>
|
||||
<item name="av_skip">@drawable/ic_av_skip_white_48dp</item>
|
||||
<item name="ic_settings_speed">@drawable/ic_playback_speed_white</item>
|
||||
<item name="ic_settings_skip">@drawable/ic_av_skip_white_24dp</item>
|
||||
@ -166,6 +168,7 @@
|
||||
<item name="colorPrimaryDark">@color/black</item>
|
||||
<item name="actionBarStyle">@style/Widget.AntennaPod.ActionBar.Black</item>
|
||||
<item name="drawer_activated_color">@color/highlight_trueblack</item>
|
||||
<item name="currently_playing_background">@color/highlight_trueblack</item>
|
||||
<item name="android:textColorPrimary">@color/white</item>
|
||||
<item name="android:color">@color/white</item>
|
||||
<item name="android:colorBackground">@color/black</item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user