aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-07-31 00:20:42 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-07-31 00:20:42 -0700
commit740cb9d29cd30522103ed9e97134a4ba995af340 (patch)
treea2acf71c37b8e9f79e0bc8597a14e9246a2d4eb2 /java/src
parent37d17ab210f7019c0d2d784a5f1e37b31334678e (diff)
parent561c4474046a665b5b4b06a2a09d31db92c39aab (diff)
downloadlatinime-740cb9d29cd30522103ed9e97134a4ba995af340.tar.gz
latinime-740cb9d29cd30522103ed9e97134a4ba995af340.tar.xz
latinime-740cb9d29cd30522103ed9e97134a4ba995af340.zip
am 561c4474: Merge "Fix a problem where settings were not renewed correctly."
* commit '561c4474046a665b5b4b06a2a09d31db92c39aab': Fix a problem where settings were not renewed correctly.
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java7
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);
}