Merge "Unbind InputMethod when app crashes"

This commit is contained in:
Tarandeep Singh
2018-02-21 20:59:09 +00:00
committed by Android (Google) Code Review

View File

@@ -1706,6 +1706,13 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
if (cs != null) {
clearClientSessionLocked(cs);
if (mCurClient == cs) {
if (mBoundToMethod) {
mBoundToMethod = false;
if (mCurMethod != null) {
executeOrSendMessage(mCurMethod, mCaller.obtainMessageO(
MSG_UNBIND_INPUT, mCurMethod));
}
}
mCurClient = null;
}
if (mCurFocusedWindowClient == cs) {