Skip to content

Commit

Permalink
Fixed double tapping the replay button
Browse files Browse the repository at this point in the history
  • Loading branch information
litetex committed Aug 29, 2021
1 parent 8bfd380 commit 703f155
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/org/schabi/newpipe/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -2765,7 +2765,9 @@ public void playPause() {
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();
Expand Down

0 comments on commit 703f155

Please sign in to comment.