diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-10-13 00:26:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-13 00:26:07 +0200 |
commit | 2ee2cb67029c27200324884127f556d89e2e9460 (patch) | |
tree | a226e60e8970409c0a870d20dd06f52f054e5e8a | |
parent | c732ecba8b27860713b65d12e2e43b13d8801701 (diff) | |
download | AntennaPod-2ee2cb67029c27200324884127f556d89e2e9460.zip |
Ignore skip in first second of playback (#6704)
Users complained that they wanted to skip the ending of
an episode and accidentally skipped the next one that
started while their finger was moving.
-rw-r--r-- | playback/base/src/main/java/de/danoeh/antennapod/playback/base/PlaybackServiceMediaPlayer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/playback/base/src/main/java/de/danoeh/antennapod/playback/base/PlaybackServiceMediaPlayer.java b/playback/base/src/main/java/de/danoeh/antennapod/playback/base/PlaybackServiceMediaPlayer.java index ef15cef1d..73b38c00c 100644 --- a/playback/base/src/main/java/de/danoeh/antennapod/playback/base/PlaybackServiceMediaPlayer.java +++ b/playback/base/src/main/java/de/danoeh/antennapod/playback/base/PlaybackServiceMediaPlayer.java @@ -215,6 +215,10 @@ public abstract class PlaybackServiceMediaPlayer { public abstract int getSelectedAudioTrack(); public void skip() { + if (getPosition() < 1000) { + Log.d(TAG, "Ignoring skip, is in first second of playback"); + return; + } endPlayback(false, true, true, true); } |