Skip to content

Commit 232d023

Browse files
authored
Merge pull request #13030 from iampopovich/fix/6815-double-tap-to-resume
[fix] Hide controls when resuming playback via double tap
2 parents 52a9b60 + 423f95a commit 232d023

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/org/schabi/newpipe/player/gesture/BasePlayerGestureListener.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ abstract class BasePlayerGestureListener(
4747
startMultiDoubleTap(event)
4848
} else if (portion === DisplayPortion.MIDDLE) {
4949
player.playPause()
50+
if (player.isPlaying) {
51+
playerUi.hideControls(0, 0)
52+
}
5053
}
5154
}
5255

0 commit comments

Comments
 (0)