Merge pull request #6218 from ByteHamster/show-skip

Show skip button even if 'continuous playback' is disabled
This commit is contained in:
ByteHamster 2022-12-11 16:30:01 +01:00 committed by GitHub
commit 39ec95c3ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);