Fix a crash when starting up LatinIME or changing orientation. Bug:2403575
This commit is contained in:
parent
a16ff1b19e
commit
b8f98ad014
1 changed files with 3 additions and 1 deletions
|
@ -793,7 +793,9 @@ public class LatinIME extends InputMethodService
|
|||
}
|
||||
mKeyboardSwitcher.setInputLocale(new Locale(mInputLanguage),
|
||||
getSelectedInputLanguages() != null);
|
||||
mKeyboardSwitcher.setVoiceMode(mEnableVoice, mVoiceOnPrimary);
|
||||
if (mInputView != null) {
|
||||
mKeyboardSwitcher.setVoiceMode(mEnableVoice, mVoiceOnPrimary);
|
||||
}
|
||||
mKeyboardSwitcher.makeKeyboards(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue