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.
This commit is contained in:
ByteHamster 2023-10-13 00:26:07 +02:00 committed by GitHub
parent c732ecba8b
commit 2ee2cb6702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -215,6 +215,10 @@ public abstract class PlaybackServiceMediaPlayer {
public abstract int getSelectedAudioTrack(); public abstract int getSelectedAudioTrack();
public void skip() { public void skip() {
if (getPosition() < 1000) {
Log.d(TAG, "Ignoring skip, is in first second of playback");
return;
}
endPlayback(false, true, true, true); endPlayback(false, true, true, true);
} }