Fix AutoText enabling timing
Bug: 3479978 Change-Id: Ic3a9e947536b1508eb2bbe45753d6f7c0e99e416
This commit is contained in:
parent
435711dee0
commit
2702334165
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initSuggest() {
|
private void initSuggest() {
|
||||||
updateAutoTextEnabled();
|
|
||||||
String locale = mSubtypeSwitcher.getInputLocaleStr();
|
String locale = mSubtypeSwitcher.getInputLocaleStr();
|
||||||
|
|
||||||
Locale savedLocale = mSubtypeSwitcher.changeSystemLocale(new Locale(locale));
|
Locale savedLocale = mSubtypeSwitcher.changeSystemLocale(new Locale(locale));
|
||||||
|
@ -425,6 +424,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
int mainDicResId = Utils.getMainDictionaryResourceId(res);
|
int mainDicResId = Utils.getMainDictionaryResourceId(res);
|
||||||
mSuggest = new Suggest(this, mainDicResId);
|
mSuggest = new Suggest(this, mainDicResId);
|
||||||
loadAndSetAutoCorrectionThreshold(prefs);
|
loadAndSetAutoCorrectionThreshold(prefs);
|
||||||
|
updateAutoTextEnabled();
|
||||||
|
|
||||||
mUserDictionary = new UserDictionary(this, locale);
|
mUserDictionary = new UserDictionary(this, locale);
|
||||||
mSuggest.setUserDictionary(mUserDictionary);
|
mSuggest.setUserDictionary(mUserDictionary);
|
||||||
|
|
Loading…
Reference in a new issue