Fix a crash when starting up LatinIME or changing orientation. Bug:2403575
parent
a16ff1b19e
commit
b8f98ad014
|
@ -793,7 +793,9 @@ public class LatinIME extends InputMethodService
|
||||||
}
|
}
|
||||||
mKeyboardSwitcher.setInputLocale(new Locale(mInputLanguage),
|
mKeyboardSwitcher.setInputLocale(new Locale(mInputLanguage),
|
||||||
getSelectedInputLanguages() != null);
|
getSelectedInputLanguages() != null);
|
||||||
mKeyboardSwitcher.setVoiceMode(mEnableVoice, mVoiceOnPrimary);
|
if (mInputView != null) {
|
||||||
|
mKeyboardSwitcher.setVoiceMode(mEnableVoice, mVoiceOnPrimary);
|
||||||
|
}
|
||||||
mKeyboardSwitcher.makeKeyboards(true);
|
mKeyboardSwitcher.makeKeyboards(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue