Refactor double tap logic to use isPlaying() method for better readability
This commit is contained in:
parent
caebf8461a
commit
423f95a65d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue