diff options
author | 2012-10-25 19:29:16 -0700 | |
---|---|---|
committer | 2012-10-25 19:29:16 -0700 | |
commit | ef5f88f33e432284c958fafe18f891a10f77e1f9 (patch) | |
tree | 78ea83a33dc8008883dbee894b0f5160359b2200 /java | |
parent | 7c22c62d8f50aebe2f96bf5dcf99077d64db6f8f (diff) | |
parent | 5e118c4c048254d40405dbb454bbea9ab9e9d174 (diff) | |
download | latinime-ef5f88f33e432284c958fafe18f891a10f77e1f9.tar.gz latinime-ef5f88f33e432284c958fafe18f891a10f77e1f9.tar.xz latinime-ef5f88f33e432284c958fafe18f891a10f77e1f9.zip |
am 5e118c4c: am 60dea36d: Assuming that NO_EXTRACT_UI mode is NO_FULSCREEN
* commit '5e118c4c048254d40405dbb454bbea9ab9e9d174':
Assuming that NO_EXTRACT_UI mode is NO_FULSCREEN
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 1ade3c422..8ac0cd4ca 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1063,7 +1063,16 @@ public final class LatinIME extends InputMethodService implements KeyboardAction // Reread resource value here, because this method is called by framework anytime as needed. final boolean isFullscreenModeAllowed = mCurrentSettings.isFullscreenModeAllowed(getResources()); - return super.onEvaluateFullscreenMode() && isFullscreenModeAllowed; + if (super.onEvaluateFullscreenMode() && isFullscreenModeAllowed) { + // TODO: Remove this hack. Actually we should not really assume NO_EXTRACT_UI + // implies NO_FULLSCREEN. However, the framework mistakenly does. i.e. NO_EXTRACT_UI + // without NO_FULLSCREEN doesn't work as expected. Because of this we need this + // hack for now. Let's get rid of this once the framework gets fixed. + final EditorInfo ei = getCurrentInputEditorInfo(); + return !(ei != null && ((ei.imeOptions & EditorInfo.IME_FLAG_NO_EXTRACT_UI) != 0)); + } else { + return false; + } } @Override |