summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/10
diff options
context:
space:
mode:
authorWilson Wu <wilsonwu@google.com>2020-11-19 20:46:17 +0800
committerWilson Wu <wilsonwu@google.com>2020-11-30 17:12:05 +0800
commit02c934b09b65adc39cb00948afed2676e0426710 (patch)
tree74d1764271dc786eb8ba301f5c63f5d68a9a80a9 /docs/html/sdk/api_diff/10
parent23a1669512cc2d827949c72d75acc3446bfdc007 (diff)
Prevent ANR when app is terminated abruptly
When app is forced stop, the removeImeSurface flow from DisplayImeController will be dropped in IMMS and IMS because some fields (IMMS#mShowRequested, IMS#mShowInputRequested..etc) still remain previous state. The launcher cannot receive keyevent at that time since IME surface remain and cause ANR. Calling hideCurrentInputLocked() to hide the IME surface when a IME client is removed. Bug: 167780081 Test: atest CtsInputMethodTestCases Test: Verify with issue reproduce steps: 1) Add another language to the keyboard 2) Open chrome and tap the EditText to show keyboard 3) Tap to show language swiching dialog 4) adb shell am force-stop com.android.chrome 5) adb shell input keyevent 8 6) Verify there is no ANR happen Change-Id: Ifb91111f7136952462678ff6d0a5e917abb5005e
Diffstat (limited to 'docs/html/sdk/api_diff/10')
0 files changed, 0 insertions, 0 deletions