From 32ffb2d1e9c0340a9f04b51bcf6e478df483a57d Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 4 Dec 2022 21:46:59 +0100 Subject: 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. --- .../playback/PlaybackServiceNotificationBuilder.java | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceNotificationBuilder.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceNotificationBuilder.java index 38597187c..9c70675fd 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceNotificationBuilder.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceNotificationBuilder.java @@ -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); -- cgit v1.2.3