summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Shan Huang <shanh@google.com> 2022-03-21 21:44:05 +0000
committer Shan Huang <shanh@google.com> 2022-04-13 22:29:29 +0000
commit38be9e32f161828b3a8d3f4e0046af3213350622 (patch)
tree11d88324489af4cb578be9a7e556a2b0e4cd3833 /libs/androidfw/StringPool.cpp
parent6585242e3eaecd2931f3c75f6d72b71b005bd5ed (diff)
Migrate InputMethodService to use OnBackInvokedDispatcher
We currently close the IME by having the target application forward KEYCODE_BACK to the IME process through InputMethodManager#dispatchInputEvent and having the IME handle the keycode in InputMethodService#onKeyDown. When apps opt in to OnBackInvokedDispatcher API, we will not dispatch KEYCODE_BACK to apps anymore. Thus we need to migrate IME to the new API for it to close on back invocation. This CL migrates the client side IME code to register and unregister callbacks, and also updates the WM side logic to make sure IME callback priority works correctly with other application callbacks. Test: In BackTestApp home activity, Show IME -> try swipe back. Open WidgetTestActivity, show IME by clicking on EditText -> try swipe back. Test: Install Micrsoft SwiftKey. Set as primary IME. Repeat the above steps in BackTestApp and make sure IME behaves correctly. Bug: 228358882 Change-Id: Idb246cf1858a7515f6fc34a5ccde33f25f56d404
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions