mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Skip loading keyboard when SoftInputWindow hasn't shown yet.
Bug: 5541192 Change-Id: I003101b2a3fdeb5bb554d249634ec5ab50aea09e
This commit is contained in:
parent
b8291fb46b
commit
1e39565bb4
@ -2169,8 +2169,12 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||
// 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(), mSettingsValues);
|
||||
// When the device locale is changed in SetupWizard etc., this method may get called via
|
||||
// onConfigurationChanged before SoftInputWindow is shown.
|
||||
if (mKeyboardSwitcher.getKeyboardView() != null) {
|
||||
// Reload keyboard because the current language has been changed.
|
||||
mKeyboardSwitcher.loadKeyboard(getCurrentInputEditorInfo(), mSettingsValues);
|
||||
}
|
||||
initSuggest();
|
||||
loadSettings();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user