diff options
| author | 2023-05-09 16:01:53 +0000 | |
|---|---|---|
| committer | 2023-05-12 08:20:33 +0000 | |
| commit | 11fccc4afb99a143a2f84668787102995414976a (patch) | |
| tree | fdd5d8ccdf1e0479a5df5be468dfbe072669b1a4 /libs/androidfw/FileStream.cpp | |
| parent | 3e1928ca21cb4ae402874805acc9de128ee6b08a (diff) | |
Call onBackCancelled() when an active callback is removed from the WindowOnBackInvokedDispatcher
When an OnBackInvokedCallback is unregistered from a WindowOnBackInvokedDispatcher, it is important to check if the callback is the current top one and if the back animation is in progress. If it is, we should call onBackCancelled() on the callback as a final step.
Test: atest WindowOnBackInvokedDispatcherTest
Bug: 276816667
Change-Id: Icaf98899c474c4e8d89d4a9c77acc309d37e9582
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions