Show skip button even if 'continuous playback' is disabled

It can still be used to skip the rest of an episode and load the next
one into the notification/miniplayer. There is no reason to hide the
button and instead show no button at all.
This commit is contained in:
ByteHamster 2022-12-04 21:46:59 +01:00
parent 4513711981
commit 32ffb2d1e9
1 changed files with 7 additions and 10 deletions

View File

@ -212,17 +212,14 @@ public class PlaybackServiceNotificationBuilder {
}
numActions++;
if (UserPreferences.isFollowQueue()) {
PendingIntent skipButtonPendingIntent = getPendingIntentForMediaAction(
KeyEvent.KEYCODE_MEDIA_NEXT, numActions);
notification.addAction(R.drawable.ic_notification_skip,
context.getString(R.string.skip_episode_label),
skipButtonPendingIntent);
if (UserPreferences.showSkipOnCompactNotification()) {
compactActionList.add(numActions);
}
numActions++;
PendingIntent skipButtonPendingIntent = getPendingIntentForMediaAction(
KeyEvent.KEYCODE_MEDIA_NEXT, numActions);
notification.addAction(R.drawable.ic_notification_skip, context.getString(R.string.skip_episode_label),
skipButtonPendingIntent);
if (UserPreferences.showSkipOnCompactNotification()) {
compactActionList.add(numActions);
}
numActions++;
PendingIntent stopButtonPendingIntent = getPendingIntentForMediaAction(
KeyEvent.KEYCODE_MEDIA_STOP, numActions);