diff options
author | 2012-04-11 21:02:26 +0900 | |
---|---|---|
committer | 2012-04-11 21:03:21 +0900 | |
commit | e6269759d642eac0a03ae6942acb5cd556e7ff46 (patch) | |
tree | 60d5df7d38d250a1282a036d205ef4520ade8681 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 9d95a99626f2aeda2248be45748490f7be6349cc (diff) | |
download | latinime-e6269759d642eac0a03ae6942acb5cd556e7ff46.tar.gz latinime-e6269759d642eac0a03ae6942acb5cd556e7ff46.tar.xz latinime-e6269759d642eac0a03ae6942acb5cd556e7ff46.zip |
Read the dictionary resource in a more sensical place.
We don't need to pass this down all the way from LatinIME any more.
It fetched be done exactly where it needs to be.
Change-Id: I9f277f9c4f9de70ae755a1334d86c67bbb24c988
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index e16be2c97..7cdeef897 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -501,9 +501,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen oldContactsDictionary = null; } - final int mainDicResId = DictionaryFactory.getMainDictionaryResourceId( - mResources, keyboardLocale); - mSuggest = new Suggest(this, mainDicResId, keyboardLocale); + mSuggest = new Suggest(this, keyboardLocale); if (mSettingsValues.mAutoCorrectEnabled) { mSuggest.setAutoCorrectionThreshold(mSettingsValues.mAutoCorrectionThreshold); } @@ -552,10 +550,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } /* package private */ void resetSuggestMainDict() { - final Locale keyboardLocale = mSubtypeSwitcher.getInputLocale(); - int mainDicResId = DictionaryFactory.getMainDictionaryResourceId( - mResources, keyboardLocale); - mSuggest.resetMainDict(this, mainDicResId, keyboardLocale); + mSuggest.resetMainDict(this, mSubtypeSwitcher.getInputLocale()); } @Override |