diff options
author | 2014-02-18 19:46:58 -0800 | |
---|---|---|
committer | 2014-02-18 19:46:58 -0800 | |
commit | b7dbfcfe58d55af4ee0672e5077a5429f7f4932a (patch) | |
tree | e07e78fdeef0f418b7ecc5a5ed394e5d7068c7c1 | |
parent | c5a953da2182989994fd7df02bf2bd586811ac4b (diff) | |
parent | e49e007bb233ab9ac0bfa8a36fcb4a67e41496c8 (diff) | |
download | latinime-b7dbfcfe58d55af4ee0672e5077a5429f7f4932a.tar.gz latinime-b7dbfcfe58d55af4ee0672e5077a5429f7f4932a.tar.xz latinime-b7dbfcfe58d55af4ee0672e5077a5429f7f4932a.zip |
am e49e007b: Fix: Use old suggest after reloading.
* commit 'e49e007bb233ab9ac0bfa8a36fcb4a67e41496c8':
Fix: Use old suggest after reloading.
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 75ba24d75..459f6d8e1 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -775,9 +775,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // Note: the following does a round-trip IPC on the main thread: be careful final Locale currentLocale = mSubtypeSwitcher.getCurrentSubtypeLocale(); - final Suggest suggest = mInputLogic.mSuggest; + Suggest suggest = mInputLogic.mSuggest; if (null != suggest && null != currentLocale && !currentLocale.equals(suggest.mLocale)) { initSuggest(); + suggest = mInputLogic.mSuggest; } // Sometimes, while rotating, for some reason the framework tells the app we are not @@ -802,6 +803,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen if (isDifferentTextField || !currentSettingsValues.hasSameOrientation(getResources().getConfiguration())) { loadSettings(); + suggest = mInputLogic.mSuggest; } if (isDifferentTextField) { mainKeyboardView.closing(); |