Skip to content

Commit

Permalink
Fix hidden menu blocking touch events
Browse files Browse the repository at this point in the history
  • Loading branch information
Nain57 committed Nov 30, 2024
1 parent fcb8973 commit 4f8f167
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 4f8f167

Please sign in to comment.