Skip to content

Commit 284e9a3

Browse files
committed
Hide controls when resuming playback via double tap
Remove redundant comment about hiding controls on double tap
1 parent 9ba89d4 commit 284e9a3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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.currentState == Player.STATE_PLAYING) {
51+
playerUi.hideControls(0, 0)
52+
}
5053
}
5154
}
5255

0 commit comments

Comments
 (0)