mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 08:30:44 +00:00
Fixed double tapping the replay button
This commit is contained in:
parent
8bfd380b89
commit
703f1550d8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user