Merge pull request #6218 from ByteHamster/show-skip
Show skip button even if 'continuous playback' is disabled
This commit is contained in:
commit
39ec95c3ad
@ -212,17 +212,14 @@ public class PlaybackServiceNotificationBuilder {
|
|||||||
}
|
}
|
||||||
numActions++;
|
numActions++;
|
||||||
|
|
||||||
if (UserPreferences.isFollowQueue()) {
|
PendingIntent skipButtonPendingIntent = getPendingIntentForMediaAction(
|
||||||
PendingIntent skipButtonPendingIntent = getPendingIntentForMediaAction(
|
KeyEvent.KEYCODE_MEDIA_NEXT, numActions);
|
||||||
KeyEvent.KEYCODE_MEDIA_NEXT, numActions);
|
notification.addAction(R.drawable.ic_notification_skip, context.getString(R.string.skip_episode_label),
|
||||||
notification.addAction(R.drawable.ic_notification_skip,
|
skipButtonPendingIntent);
|
||||||
context.getString(R.string.skip_episode_label),
|
if (UserPreferences.showSkipOnCompactNotification()) {
|
||||||
skipButtonPendingIntent);
|
compactActionList.add(numActions);
|
||||||
if (UserPreferences.showSkipOnCompactNotification()) {
|
|
||||||
compactActionList.add(numActions);
|
|
||||||
}
|
|
||||||
numActions++;
|
|
||||||
}
|
}
|
||||||
|
numActions++;
|
||||||
|
|
||||||
PendingIntent stopButtonPendingIntent = getPendingIntentForMediaAction(
|
PendingIntent stopButtonPendingIntent = getPendingIntentForMediaAction(
|
||||||
KeyEvent.KEYCODE_MEDIA_STOP, numActions);
|
KeyEvent.KEYCODE_MEDIA_STOP, numActions);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user