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

This commit is contained in:
Rahul Banerjee
2022-07-08 18:19:39 +00:00
committed by Android (Google) Code Review

View File

@@ -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
}
}