commit | 025b9e5cebaf39a6544d5d3984ae44416eb06179 | [log] [tgz] |
---|---|---|
author | Shan Huang <shanh@google.com> | Sat Jan 22 06:22:04 2022 +0000 |
committer | Shan Huang <shanh@google.com> | Sat Feb 05 01:53:25 2022 +0000 |
tree | c095ab68b936ae99a2e6c11515ad4473173b5ff4 | |
parent | 4081821956110c723d03d970c48fa92495eff902 [diff] |
Add compatibility back callbacks. For pre-T apps, the default back callback dispatches KEYCODE_BACK to the application's root view. For T+ apps, the default KEYCODE_BACK listener invokes the registered OnBackInvokedCallback. Test: m -j Bug: 195946584 Change-Id: I62342b249e6cd6f8b036f7e950cc3f9754418ee4