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

Commit f403b1fe authored by Craig Mautner's avatar Craig Mautner
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 e50d7fcd
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.