Loading src/org/lineageos/eleven/MusicPlaybackService.java +6 −0 Original line number Diff line number Diff line Loading @@ -839,6 +839,8 @@ public class MusicPlaybackService extends MediaBrowserService public void onCustomAction(@NonNull String action, @Nullable Bundle extras) { if (action.equals(SHUFFLE_ACTION)) { cycleShuffle(); } else if (action.equals(REPEAT_ACTION)) { cycleRepeat(); } } }); Loading Loading @@ -1648,6 +1650,10 @@ public class MusicPlaybackService extends MediaBrowserService SHUFFLE_ACTION, getString(R.string.menu_shuffle_item), R.drawable.btn_playback_shuffle_all).build()); stateBuilder.addCustomAction(new PlaybackState.CustomAction.Builder( REPEAT_ACTION, getString(R.string.accessibility_repeat), R.drawable.btn_playback_repeat_all).build()); if (what.equals(PLAYSTATE_CHANGED) || what.equals(POSITION_CHANGED)) { mSession.setPlaybackState(stateBuilder.build()); Loading Loading
src/org/lineageos/eleven/MusicPlaybackService.java +6 −0 Original line number Diff line number Diff line Loading @@ -839,6 +839,8 @@ public class MusicPlaybackService extends MediaBrowserService public void onCustomAction(@NonNull String action, @Nullable Bundle extras) { if (action.equals(SHUFFLE_ACTION)) { cycleShuffle(); } else if (action.equals(REPEAT_ACTION)) { cycleRepeat(); } } }); Loading Loading @@ -1648,6 +1650,10 @@ public class MusicPlaybackService extends MediaBrowserService SHUFFLE_ACTION, getString(R.string.menu_shuffle_item), R.drawable.btn_playback_shuffle_all).build()); stateBuilder.addCustomAction(new PlaybackState.CustomAction.Builder( REPEAT_ACTION, getString(R.string.accessibility_repeat), R.drawable.btn_playback_repeat_all).build()); if (what.equals(PLAYSTATE_CHANGED) || what.equals(POSITION_CHANGED)) { mSession.setPlaybackState(stateBuilder.build()); Loading