aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-02-19 12:17:52 +0900
committerKeisuke Kuroyanagi <ksk@google.com>2014-02-19 12:34:09 +0900
commite49e007bb233ab9ac0bfa8a36fcb4a67e41496c8 (patch)
tree1e8486f864fb33e4127d627a87830b1cc3002cea /java/src
parentf2a6f2db3e77587f952c5628bd1e4223d7b26b64 (diff)
downloadlatinime-e49e007bb233ab9ac0bfa8a36fcb4a67e41496c8.tar.gz
latinime-e49e007bb233ab9ac0bfa8a36fcb4a67e41496c8.tar.xz
latinime-e49e007bb233ab9ac0bfa8a36fcb4a67e41496c8.zip
Fix: Use old suggest after reloading.
Change-Id: Icb2821f61c4203254b7d573cad5ce71fbf0ed841
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java4
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();