From 2ee2cb67029c27200324884127f556d89e2e9460 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Fri, 13 Oct 2023 00:26:07 +0200 Subject: [PATCH] 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. --- .../antennapod/playback/base/PlaybackServiceMediaPlayer.java | 4 ++++ 1 file changed, 4 insertions(+) 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); }