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:
Craig Mautner
2013-03-19 16:54:35 -07:00
parent e50d7fcd97
commit f403b1fe50

View File

@@ -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.