Merge "Fix "appearance glitch" in Back Arrow" into tm-qpr-dev am: bb691ff048

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19211684

Change-Id: I4593fbf7cbc9694fcd15f1a540f763b814e56acf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Rahul Banerjee
2022-07-08 18:40:48 +00:00
committed by Automerger Merge Worker

View File

@@ -321,7 +321,10 @@ class BackPanelController private constructor(
velocityTracker = null velocityTracker = null
} }
MotionEvent.ACTION_CANCEL -> { 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 velocityTracker = null
} }
} }