From 65c1849e34f78a2dcfe048365547222e6943d21c Mon Sep 17 00:00:00 2001 From: AbdallahMehiz Date: Sat, 31 Aug 2024 20:58:20 +0100 Subject: [PATCH] fix(gestures): long press triggering even when locked another sloppy mistake --- .../java/live/mehiz/mpvkt/ui/player/controls/GestureHandler.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/live/mehiz/mpvkt/ui/player/controls/GestureHandler.kt b/app/src/main/java/live/mehiz/mpvkt/ui/player/controls/GestureHandler.kt index 22cf69b..8143515 100644 --- a/app/src/main/java/live/mehiz/mpvkt/ui/player/controls/GestureHandler.kt +++ b/app/src/main/java/live/mehiz/mpvkt/ui/player/controls/GestureHandler.kt @@ -188,6 +188,7 @@ fun GestureHandler(modifier: Modifier = Modifier) { interactionSource.emit(PressInteraction.Release(press)) }, onLongPress = { + if (areControlsLocked) return@detectTapGestures if (!isLongPressing && !viewModel.paused.value) { haptics.performHapticFeedback(HapticFeedbackType.LongPress) isLongPressing = true