diff options
| author | 2023-05-02 14:19:55 +0000 | |
|---|---|---|
| committer | 2023-05-09 10:29:40 +0000 | |
| commit | 63a3d4d749db1fff10c9b268f5fdd4a9b4b7db8a (patch) | |
| tree | 4fc560ab7bff90841035e81be5a8f41b21d01733 /libs/androidfw/ConfigDescription.cpp | |
| parent | 3e1928ca21cb4ae402874805acc9de128ee6b08a (diff) | |
Support for OnBackAnimationCallback: added for 3-button navigation / hardware keys
The callback can be called as follows if it supports the `onBackStarted()` and `onBackCancelled()` methods:
- `onBackStarted()` is called when the back button is pressed (`ACTION_DOWN`) and `keyEvent.getRepeatCount()` is `0`.
- `onBackCancelled()` is called when the back button is released (`ACTION_UP`) and the `keyEvent.isCanceled()` is `true`.
- `onBackInvoked()` is called when the back button is released (`ACTION_UP`) and the `keyEvent.isCanceled()` is `false`.
Test: atest OnBackInvokedCallbackGestureTest
Bug: 278634019
Change-Id: Iba5a27e68607ce33c38dbbc818d66e8753688761
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions