summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author omarmt <omarmt@google.com> 2023-06-01 13:59:33 +0000
committer omarmt <omarmt@google.com> 2023-06-02 13:54:56 +0000
commit75b025d1db81202acc24384e8cfdc1294a945bc3 (patch)
tree96c323cf1ed1f780b6262954a3d3ac739dc86290 /libs/androidfw/ApkParsing.cpp
parent4c45ee8c1d558d14ab4588d7616bcf7aa518438d (diff)
Cancel the back animation if the topCallback is removed or the WindowOnBackInvokedDispatcher is detached from the window.
We'll send an onBackCancelled() event whenever the top callback is in progress and has been removed from the callbacks. Changes: - We send onBackCancelled() and reset the ProgressAnimator when clear() is called. - Added a check to avoid sending an onBackInvoked() to the app if the ProgressAnimator is not in progress. Test: atest WindowOnBackInvokedDispatcherTest Bug: 255324784 Change-Id: I0dcc1fb869070dd5bab6c0802c933783266594e5
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions