mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Re-create input view after voice IME finished
Change-Id: Ia389eb43ac7ffec229bfd8b0fe56ce8271cb1d39
This commit is contained in:
parent
7e9615f218
commit
55303bc634
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user