Refactor double tap logic to use isPlaying() method for better readability
This commit is contained in:
parent
caebf8461a
commit
423f95a65d
@ -47,7 +47,7 @@ abstract class BasePlayerGestureListener(
|
||||
startMultiDoubleTap(event)
|
||||
} else if (portion === DisplayPortion.MIDDLE) {
|
||||
player.playPause()
|
||||
if (player.currentState == Player.STATE_PLAYING) {
|
||||
if (player.isPlaying) {
|
||||
playerUi.hideControls(0, 0)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user