Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27389c9c authored by Craig Mautner's avatar Craig Mautner Committed by The Android Automerger
Browse files

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
parent 11322434
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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.