summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Johannes Gallmann <gallmann@google.com> 2024-04-30 12:11:58 +0000
committer Johannes Gallmann <gallmann@google.com> 2024-04-30 14:54:08 +0000
commit5f43140e3314e6865aa5f47b9557748d0448e7be (patch)
treec1502d13dc24306a7023e305871e30061be1b75f /libs/androidfw/FileStream.cpp
parent02aea3b17294c49fe20f943aba6cc543b121bf4c (diff)
Fix app callback broken when immediately restarting back gesture after cancel
This fixes two bugs: 1. When calling onBackStarted, we need to ensure that onBackCancelled of a potential previously cancelled gesture is called first. onBackCancelled can be delayed because the progress animates to 0 before the callback is invoked. Otherwise onBackStarted of the second gesture can be called before onBackCancelled of the first gesture is called. 2. The BackTouchTracker should be reset when the user gesture ends (instead of when BackProgressAnimator finished animating the progress back to 0). That ensures that a new gesture that starts between the gesture end and the progress reaching zero does not update the BackProgressAnimator of the previous (cancelled) gesture with new MotionEvents. Bug: 338021694 Flag: NONE Test: atest FrameworksCoreTests:WindowOnBackInvokedDispatcherTest Test: Manual, i.e. verifying that onBackCancelled is dispatched before onBackStarted when immediately restarting back gesture Change-Id: Ibe3ce291713dc5ba0512404fa47f6b17d50f7a13
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions