Refactor double tap logic to use isPlaying() method for better readability

This commit is contained in:
Alex Popov 2026-01-10 01:48:26 +03:00 committed by tobigr
parent caebf8461a
commit 423f95a65d

View File

@ -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)
}
}