diff options
| author | 2022-07-08 18:19:39 +0000 | |
|---|---|---|
| committer | 2022-07-08 18:19:39 +0000 | |
| commit | bb691ff0487978332ad8264b7c6034fc23af6ad6 (patch) | |
| tree | 353c8e66e4bd83b23f1260825daef752b4e81a53 | |
| parent | ca9df1de5bd59728ba12954eb785313b05a98fbd (diff) | |
| parent | 8a9db5f82a6d880fd673b3930a870f8568395f64 (diff) | |
Merge "Fix "appearance glitch" in Back Arrow" into tm-qpr-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/navigationbar/gestural/BackPanelController.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/BackPanelController.kt b/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/BackPanelController.kt index 8179d1763ea1..a83367059736 100644 --- a/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/BackPanelController.kt +++ b/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/BackPanelController.kt @@ -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 } } |