App version: 3.0.2 F-Droid
Problem you may be having, or feature you want:
It would be nice to be able to disable the seek bar and the skip podcast buttons on the lock screen/notification players.
Suggested solution:
Add a setting to be able to toggle those as options.
Screenshots / Drawings / Technical details:
Not sure if this is a good fix but if you remove these lines it seems to work:
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java
index 6fc9035ca..bb904851b 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java
@@ -1204,7 +1204,6 @@ public class PlaybackService extends MediaBrowserServiceCompat {
| PlaybackStateCompat.ACTION_REWIND
| PlaybackStateCompat.ACTION_PAUSE
| PlaybackStateCompat.ACTION_FAST_FORWARD
- | PlaybackStateCompat.ACTION_SEEK_TO
| PlaybackStateCompat.ACTION_SET_PLAYBACK_SPEED;
sessionState.setActions(capabilities);
@@ -1234,13 +1233,6 @@ public class PlaybackService extends MediaBrowserServiceCompat {
R.drawable.ic_notification_playback_speed
).build()
);
- sessionState.addCustomAction(
- new PlaybackStateCompat.CustomAction.Builder(
- CUSTOM_ACTION_SKIP_TO_NEXT,
- getString(R.string.skip_episode_label),
- R.drawable.ic_notification_skip
- ).build()
- );
We