1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-01 22:41:56 +01:00

Merge pull request #7014 from litetex/fix-double-tapping-replay-button

Fixed double tapping the replay button
This commit is contained in:
Tobi 2021-08-29 18:43:28 +02:00 committed by GitHub
commit 46f74b908a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2765,7 +2765,9 @@ public final class Player implements
Log.d(TAG, "onPlayPause() called");
}
if (getPlayWhenReady()) {
if (getPlayWhenReady()
// When state is completed (replay button is shown) then (re)play and do not pause
&& currentState != STATE_COMPLETED) {
pause();
} else {
play();