diff options
author | 2011-11-17 18:00:36 -0800 | |
---|---|---|
committer | 2011-11-17 18:00:36 -0800 | |
commit | 1fcdcc928ba21a7a1a4d3a64c1d1f8fa399099ff (patch) | |
tree | a9eddae0a1a02e0e66ae28e047033d7aa7f1b5c9 /java/src | |
parent | b70841f371e48731732044924b87cd824e327297 (diff) | |
parent | 60acfdf4a85fa96a72488d3cef24eccb02393ab9 (diff) | |
download | latinime-1fcdcc928ba21a7a1a4d3a64c1d1f8fa399099ff.tar.gz latinime-1fcdcc928ba21a7a1a4d3a64c1d1f8fa399099ff.tar.xz latinime-1fcdcc928ba21a7a1a4d3a64c1d1f8fa399099ff.zip |
Merge "Skip loading keyboard when SoftInputWindow hasn't shown yet. (DO NOT MERGE)" into ics-mr1
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index d57154ad5..40d1bd560 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -2100,8 +2100,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(); } |