[Android] Use new Android Auto repeat and shuffle icons
Alexandre Perraud
git at videolan.org
Wed Nov 23 17:54:56 CET 2016
vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Wed Nov 23 17:53:27 2016 +0100| [5dc123df8a11e523b87b2c67281a32af2870c4c1] | committer: Alexandre Perraud
Use new Android Auto repeat and shuffle icons
> https://code.videolan.org/videolan/vlc-android/commit/5dc123df8a11e523b87b2c67281a32af2870c4c1
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 59ae159..c9fe9bd 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1220,9 +1220,9 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
actions |= PlaybackStateCompat.ACTION_FAST_FORWARD | PlaybackStateCompat.ACTION_REWIND;
actions |= PlaybackStateCompat.ACTION_SKIP_TO_QUEUE_ITEM;
pscb.setActions(actions);
- int repeatResId = getRepeatType() == REPEAT_ALL ? R.drawable.ic_repeat_normal_o : getRepeatType() == REPEAT_ONE ? R.drawable.ic_repeat_one : R.drawable.ic_repeat_normal;
+ int repeatResId = getRepeatType() == REPEAT_ALL ? R.drawable.ic_auto_repeat_pressed : getRepeatType() == REPEAT_ONE ? R.drawable.ic_auto_repeat_one_pressed : R.drawable.ic_auto_repeat_normal;
if (mMediaList.size() > 2)
- pscb.addCustomAction("shuffle", getString(R.string.shuffle_title), isShuffling() ? R.drawable.ic_shuffle_normal_o : R.drawable.ic_shuffle_normal_w);
+ pscb.addCustomAction("shuffle", getString(R.string.shuffle_title), isShuffling() ? R.drawable.ic_auto_shuffle_pressed : R.drawable.ic_auto_shuffle_normal);
pscb.addCustomAction("repeat", getString(R.string.repeat_title), repeatResId);
mMediaSession.setPlaybackState(pscb.build());
mMediaSession.setActive(hasMedia());
More information about the Android
mailing list