summaryrefslogtreecommitdiff
path: root/libs/androidfw/ConfigDescription.cpp
diff options
context:
space:
mode:
author omarmt <omarmt@google.com> 2023-05-02 14:19:55 +0000
committer omarmt <omarmt@google.com> 2023-05-09 10:29:40 +0000
commit63a3d4d749db1fff10c9b268f5fdd4a9b4b7db8a (patch)
tree4fc560ab7bff90841035e81be5a8f41b21d01733 /libs/androidfw/ConfigDescription.cpp
parent3e1928ca21cb4ae402874805acc9de128ee6b08a (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