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) startMultiDoubleTap(event)
} else if (portion === DisplayPortion.MIDDLE) { } else if (portion === DisplayPortion.MIDDLE) {
player.playPause() player.playPause()
if (player.currentState == Player.STATE_PLAYING) { if (player.isPlaying) {
playerUi.hideControls(0, 0) playerUi.hideControls(0, 0)
} }
} }