diff options
author | 2014-08-25 09:43:38 +0000 | |
---|---|---|
committer | 2014-08-25 09:43:38 +0000 | |
commit | 54ca9dd998c00fef5b593228caec7f421cbd7966 (patch) | |
tree | 7aa13ced888232ac9e16a1c8c88985bf4a582765 /java | |
parent | 781d75126bed8a5975683a35d94bce9a0b915b31 (diff) | |
parent | d147db876365066e8989764807f532c0865349e3 (diff) | |
download | latinime-54ca9dd998c00fef5b593228caec7f421cbd7966.tar.gz latinime-54ca9dd998c00fef5b593228caec7f421cbd7966.tar.xz latinime-54ca9dd998c00fef5b593228caec7f421cbd7966.zip |
am d147db87: am c500700f: am 19dd34a0: Show view even when IME is explicitly shown with physical keyboard
* commit 'd147db876365066e8989764807f532c0865349e3':
Show view even when IME is explicitly shown with physical keyboard
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 660b2daf2..ef0e031e3 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -51,6 +51,7 @@ import android.view.WindowManager; import android.view.inputmethod.CompletionInfo; import android.view.inputmethod.CursorAnchorInfo; import android.view.inputmethod.EditorInfo; +import android.view.inputmethod.InputMethod; import android.view.inputmethod.InputMethodSubtype; import com.android.inputmethod.accessibility.AccessibilityUtils; @@ -1139,6 +1140,17 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } @Override + public boolean onShowInputRequested(final int flags, final boolean configChange) { + if ((flags & InputMethod.SHOW_EXPLICIT) == 0 && mKeyboardSwitcher.hasHardwareKeyboard()) { + // Even when IME is implicitly shown and physical keyboard is connected, we should + // show {@link InputView}. + // See {@link InputMethodService#onShowInputRequested(int,boolean)}. + return true; + } + return super.onShowInputRequested(flags, configChange); + } + + @Override public boolean onEvaluateFullscreenMode() { if (mKeyboardSwitcher.hasHardwareKeyboard()) { // If there is a hardware keyboard, disable full screen mode. |