Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 63a3d4d7 authored by omarmt's avatar omarmt
Browse files

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
parent 3e1928ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment