diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 61b2e93cc..ff0226684 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -991,8 +991,17 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar @Override public boolean onEvaluateFullscreenMode() { - return super.onEvaluateFullscreenMode() - && mResources.getBoolean(R.bool.config_use_fullscreen_mode); + if (!super.onEvaluateFullscreenMode()) return false; + + final EditorInfo ei = getCurrentInputEditorInfo(); + if (ei != null) { + final int imeOptions = ei.imeOptions; + if ((imeOptions & EditorInfo.IME_FLAG_NO_EXTRACT_UI) != 0) { + return false; + } + } + + return mResources.getBoolean(R.bool.config_use_fullscreen_mode); } @Override