Fix a crash when starting up LatinIME or changing orientation. Bug:2403575

main
Amith Yamasani 2010-01-28 12:34:01 -08:00
parent a16ff1b19e
commit b8f98ad014
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}