diff options
author | 2013-07-30 12:57:35 +0900 | |
---|---|---|
committer | 2013-07-30 13:22:05 +0900 | |
commit | 74bcc911ea477415edc19eca829dbba9ab1b2464 (patch) | |
tree | 43430a05949248cb9ec820b41e325e5ea97875a7 /java/src/com/android/inputmethod | |
parent | 9118467b8601c87ae6f55b47ea7becaba8d1f9fb (diff) | |
download | latinime-74bcc911ea477415edc19eca829dbba9ab1b2464.tar.gz latinime-74bcc911ea477415edc19eca829dbba9ab1b2464.tar.xz latinime-74bcc911ea477415edc19eca829dbba9ab1b2464.zip |
Fix a problem where settings were not renewed correctly.
Bug: 10065412
Change-Id: Id05284f45466cd5b2697a695c3d1bdfbf3cc1f24
Diffstat (limited to 'java/src/com/android/inputmethod')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 9366abd73..65f0a7adc 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -714,7 +714,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen super.onStartInputView(editorInfo, restarting); final KeyboardSwitcher switcher = mKeyboardSwitcher; final MainKeyboardView mainKeyboardView = switcher.getMainKeyboardView(); - final SettingsValues currentSettingsValues = mSettings.getCurrent(); + // If we are starting input in a different text field from before, we'll have to reload + // settings, so currentSettingsValues can't be final. + SettingsValues currentSettingsValues = mSettings.getCurrent(); if (editorInfo == null) { Log.e(TAG, "Null EditorInfo in onStartInputView()"); @@ -808,7 +810,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen if (isDifferentTextField) { mainKeyboardView.closing(); loadSettings(); - // TODO: Need to update currentSettingsValues after loadSettings() + currentSettingsValues = mSettings.getCurrent(); + if (mSuggest != null && currentSettingsValues.mCorrectionEnabled) { mSuggest.setAutoCorrectionThreshold(currentSettingsValues.mAutoCorrectionThreshold); } |