diff options
author | 2011-06-27 23:55:48 +0900 | |
---|---|---|
committer | 2011-06-27 23:55:48 +0900 | |
commit | dcecc32f3b0df9d66e9049aa7fb9e13745c543d2 (patch) | |
tree | 6ad47b8e3cfc1842a63a96e870089dfeb959b1e2 /java | |
parent | 4ab0645c829178155bc354feb2809477c09d080c (diff) | |
parent | 55303bc63440c6a9547e94b4f3486a00696da9b0 (diff) | |
download | latinime-dcecc32f3b0df9d66e9049aa7fb9e13745c543d2.tar.gz latinime-dcecc32f3b0df9d66e9049aa7fb9e13745c543d2.tar.xz latinime-dcecc32f3b0df9d66e9049aa7fb9e13745c543d2.zip |
Merge remote-tracking branch 'goog/master' into merge
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 426eb093c..45f35ec03 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1870,6 +1870,11 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar // Notify that language or mode have been changed and toggleLanguage will update KeyboardID // according to new language or mode. public void onRefreshKeyboard() { + if (!CAN_HANDLE_ON_CURRENT_INPUT_METHOD_SUBTYPE_CHANGED) { + // Before Honeycomb, Voice IME is in LatinIME and it changes the current input view, + // so that we need to re-create the keyboard input view here. + setInputView(mKeyboardSwitcher.onCreateInputView()); + } // Reload keyboard because the current language has been changed. mKeyboardSwitcher.loadKeyboard(getCurrentInputEditorInfo(), mSubtypeSwitcher.isShortcutImeEnabled() && mVoiceProxy.isVoiceButtonEnabled(), |