diff --git a/core/java/android/view/inputmethod/InputMethodManager.java b/core/java/android/view/inputmethod/InputMethodManager.java index 110bd33ffeef3..80a6c02f6389d 100644 --- a/core/java/android/view/inputmethod/InputMethodManager.java +++ b/core/java/android/view/inputmethod/InputMethodManager.java @@ -957,9 +957,10 @@ public final class InputMethodManager { final boolean fullscreen = msg.arg1 != 0; InputConnection ic = null; synchronized (mH) { - mFullscreenMode = fullscreen; - if (mServedInputConnectionWrapper != null) { + if (mFullscreenMode != fullscreen + && mServedInputConnectionWrapper != null) { ic = mServedInputConnectionWrapper.getInputConnection(); + mFullscreenMode = fullscreen; } } if (ic != null) {