Loading core/java/android/inputmethodservice/InputMethodService.java +11 −5 Original line number Diff line number Diff line Loading @@ -1565,11 +1565,17 @@ public class InputMethodService extends AbstractInputMethodService { if (DEBUG) Log.v(TAG, "clearInsetOfPreviousIme() " + " mShouldClearInsetOfPreviousIme=" + mShouldClearInsetOfPreviousIme); if (!mShouldClearInsetOfPreviousIme || mWindow == null) return; try { // We do not call onWindowShown() and onWindowHidden() so as not to make the IME author // confused. // TODO: Find out a better way which has less side-effect. mWindow.show(); mWindow.hide(); } catch (WindowManager.BadTokenException e) { if (DEBUG) Log.v(TAG, "clearInsetOfPreviousIme: BadTokenException: IME is done."); mWindowVisible = false; mWindowAdded = false; } mShouldClearInsetOfPreviousIme = false; } Loading Loading
core/java/android/inputmethodservice/InputMethodService.java +11 −5 Original line number Diff line number Diff line Loading @@ -1565,11 +1565,17 @@ public class InputMethodService extends AbstractInputMethodService { if (DEBUG) Log.v(TAG, "clearInsetOfPreviousIme() " + " mShouldClearInsetOfPreviousIme=" + mShouldClearInsetOfPreviousIme); if (!mShouldClearInsetOfPreviousIme || mWindow == null) return; try { // We do not call onWindowShown() and onWindowHidden() so as not to make the IME author // confused. // TODO: Find out a better way which has less side-effect. mWindow.show(); mWindow.hide(); } catch (WindowManager.BadTokenException e) { if (DEBUG) Log.v(TAG, "clearInsetOfPreviousIme: BadTokenException: IME is done."); mWindowVisible = false; mWindowAdded = false; } mShouldClearInsetOfPreviousIme = false; } Loading