Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a9db5f8 authored by Rahul Banerjee's avatar Rahul Banerjee
Browse files

Fix "appearance glitch" in Back Arrow

This avoids playing the Cancellation animation when we receive an
ACTION_CANCEL (and just goes straight to GONE), which fixes the glitch.

Bug: 237442123
Test: manual
Change-Id: Iab0fb98f5a71e1fe80d3949b4fbb35055c731b3f
parent dbe79735
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -321,7 +321,10 @@ class BackPanelController private constructor(
                velocityTracker = null
            }
            MotionEvent.ACTION_CANCEL -> {
                updateArrowState(GestureState.CANCELLED)
                // Receiving a CANCEL implies that something else intercepted
                // the gesture, i.e., the user did not cancel their gesture.
                // Therefore, disappear immediately, with minimum fanfare.
                updateArrowState(GestureState.GONE)
                velocityTracker = null
            }
        }