Clear mWindowAdded when window was not added. DO NOT MERGE
If ViewRootImpl throws BadTokenException when adding a window, clear
the indication that a window has been added. That way when the
window is destroyed it doesn't try to clean it up.
Fixes bug 8409506.
Change-Id: I270740762f21ed4ec7f235344a3adaeaa033c483
This commit is contained in:
@@ -427,6 +427,7 @@ public class InputMethodService extends AbstractInputMethodService {
|
||||
} catch (BadTokenException e) {
|
||||
if (DEBUG) Log.v(TAG, "BadTokenException: IME is done.");
|
||||
mWindowVisible = false;
|
||||
mWindowAdded = false;
|
||||
}
|
||||
}
|
||||
// If user uses hard keyboard, IME button should always be shown.
|
||||
|
||||
Reference in New Issue
Block a user