From 703f1550d828702de1e6858d8b41f79a763d8d1e Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Sun, 29 Aug 2021 17:53:09 +0200 Subject: [PATCH] Fixed double tapping the replay button --- app/src/main/java/org/schabi/newpipe/player/Player.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/Player.java b/app/src/main/java/org/schabi/newpipe/player/Player.java index 83c567cb6..2731a661b 100644 --- a/app/src/main/java/org/schabi/newpipe/player/Player.java +++ b/app/src/main/java/org/schabi/newpipe/player/Player.java @@ -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();