Skip loading keyboard when SoftInputWindow hasn't shown yet. (DO NOT MERGE)
This is cherry-pick of I003101b2 from Master for Bug: 5541192 Bug: 5636367 Change-Id: I560126d17be6a770b19c1f1347332ebdfde5d671
This commit is contained in:
parent
875c16adc3
commit
60acfdf4a8
1 changed files with 6 additions and 2 deletions
|
@ -2100,8 +2100,12 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
// so that we need to re-create the keyboard input view here.
|
// so that we need to re-create the keyboard input view here.
|
||||||
setInputView(mKeyboardSwitcher.onCreateInputView());
|
setInputView(mKeyboardSwitcher.onCreateInputView());
|
||||||
}
|
}
|
||||||
// Reload keyboard because the current language has been changed.
|
// When the device locale is changed in SetupWizard etc., this method may get called via
|
||||||
mKeyboardSwitcher.loadKeyboard(getCurrentInputEditorInfo(), mSettingsValues);
|
// onConfigurationChanged before SoftInputWindow is shown.
|
||||||
|
if (mKeyboardSwitcher.getKeyboardView() != null) {
|
||||||
|
// Reload keyboard because the current language has been changed.
|
||||||
|
mKeyboardSwitcher.loadKeyboard(getCurrentInputEditorInfo(), mSettingsValues);
|
||||||
|
}
|
||||||
initSuggest();
|
initSuggest();
|
||||||
loadSettings();
|
loadSettings();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue