diff options
author | 2011-04-27 00:42:24 -0700 | |
---|---|---|
committer | 2011-04-27 00:42:24 -0700 | |
commit | fd78781ced66551948dff25c0dee0ae6e159e272 (patch) | |
tree | eaa916a6bf45d66dde0cdf3d56c1eee7da4940ae /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | e4181036f68d6bcf8ef928075b954a65243b202a (diff) | |
parent | 309bff562fbaf47488e6bf6636840f00574187d8 (diff) | |
download | latinime-fd78781ced66551948dff25c0dee0ae6e159e272.tar.gz latinime-fd78781ced66551948dff25c0dee0ae6e159e272.tar.xz latinime-fd78781ced66551948dff25c0dee0ae6e159e272.zip |
Merge "Add a method to set the locale to Utils."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 751304b73..39bc78e20 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -470,14 +470,14 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar final String localeStr = mSubtypeSwitcher.getInputLocaleStr(); final Locale keyboardLocale = new Locale(localeStr); - final Locale savedLocale = mSubtypeSwitcher.changeSystemLocale(keyboardLocale); + final Resources res = mResources; + final Locale savedLocale = Utils.setSystemLocale(res, keyboardLocale); if (mSuggest != null) { mSuggest.close(); } final SharedPreferences prefs = mPrefs; mQuickFixes = isQuickFixesEnabled(prefs); - final Resources res = mResources; int mainDicResId = Utils.getMainDictionaryResourceId(res); mSuggest = new Suggest(this, mainDicResId, keyboardLocale); loadAndSetAutoCorrectionThreshold(prefs); @@ -499,7 +499,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar mWordSeparators = res.getString(R.string.word_separators); mSentenceSeparators = res.getString(R.string.sentence_separators); - mSubtypeSwitcher.changeSystemLocale(savedLocale); + Utils.setSystemLocale(res, savedLocale); } /* package private */ void resetSuggestMainDict() { |