Skip to content

Commit 0b15da5

Browse files
committed
Refactor double tap logic to use isPlaying() method for better readability
1 parent 284e9a3 commit 0b15da5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ abstract class BasePlayerGestureListener(
4747
startMultiDoubleTap(event)
4848
} else if (portion === DisplayPortion.MIDDLE) {
4949
player.playPause()
50-
if (player.currentState == Player.STATE_PLAYING) {
50+
if (player.isPlaying()) {
5151
playerUi.hideControls(0, 0)
5252
}
5353
}

0 commit comments

Comments
 (0)