aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-08-25 09:26:15 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-25 09:26:15 +0000
commitc500700faec11b7a6d54a821009be4d657c43394 (patch)
treee49bab611de72ff743ef57828497219811af1f15 /java/src
parent4a782da382b83164ea5c23c771b771e73bbe31b3 (diff)
parent19dd34a02320b7a368c4ad65398248ceca41b69e (diff)
downloadlatinime-c500700faec11b7a6d54a821009be4d657c43394.tar.gz
latinime-c500700faec11b7a6d54a821009be4d657c43394.tar.xz
latinime-c500700faec11b7a6d54a821009be4d657c43394.zip
am 19dd34a0: Show view even when IME is explicitly shown with physical keyboard
* commit '19dd34a02320b7a368c4ad65398248ceca41b69e': Show view even when IME is explicitly shown with physical keyboard
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java12
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 466ac8c69..8bf1688df 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;
@@ -1138,6 +1139,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.