From 4f8f167e0e34a827057233e8703cbd7a0eb87bf8 Mon Sep 17 00:00:00 2001 From: Nain57 Date: Sat, 30 Nov 2024 16:38:59 +0100 Subject: [PATCH] Fix hidden menu blocking touch events --- .../smartautoclicker/core/common/overlays/menu/OverlayMenu.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/common/overlays/src/main/java/com/buzbuz/smartautoclicker/core/common/overlays/menu/OverlayMenu.kt b/core/common/overlays/src/main/java/com/buzbuz/smartautoclicker/core/common/overlays/menu/OverlayMenu.kt index 87274c1f9..34a74bd9f 100644 --- a/core/common/overlays/src/main/java/com/buzbuz/smartautoclicker/core/common/overlays/menu/OverlayMenu.kt +++ b/core/common/overlays/src/main/java/com/buzbuz/smartautoclicker/core/common/overlays/menu/OverlayMenu.kt @@ -266,6 +266,7 @@ abstract class OverlayMenu( Log.d(TAG, "Start show overlay ${hashCode()} animation...") val animatedOverlayView = if (animateOverlayView()) screenOverlayView else null + menuLayout.visibility = View.VISIBLE menuBackground.visibility = View.VISIBLE animatedOverlayView?.visibility = View.VISIBLE animations.startShowAnimation(menuBackground, animatedOverlayView) { @@ -306,6 +307,7 @@ abstract class OverlayMenu( animations.startHideAnimation(menuBackground, animatedOverlayView) { Log.d(TAG, "Hide overlay ${hashCode()} animation ended") + menuLayout.visibility = View.GONE menuBackground.visibility = View.GONE screenOverlayView?.visibility = View.GONE