Merge "Fix SubtypeSwitcher incomplete initialization" into jb-dev
This commit is contained in:
commit
45c57dcc2d
1 changed files with 2 additions and 1 deletions
|
@ -182,12 +182,13 @@ public class SubtypeSwitcher {
|
||||||
+ newSubtype.getLocale() + "/" + newSubtype.getExtraValue() + ", from: "
|
+ newSubtype.getLocale() + "/" + newSubtype.getExtraValue() + ", from: "
|
||||||
+ mCurrentSubtype.getLocale() + "/" + mCurrentSubtype.getExtraValue());
|
+ mCurrentSubtype.getLocale() + "/" + mCurrentSubtype.getExtraValue());
|
||||||
}
|
}
|
||||||
if (newSubtype.equals(mCurrentSubtype)) return;
|
|
||||||
|
|
||||||
final Locale newLocale = SubtypeLocale.getSubtypeLocale(newSubtype);
|
final Locale newLocale = SubtypeLocale.getSubtypeLocale(newSubtype);
|
||||||
mNeedsToDisplayLanguage.updateIsSystemLanguageSameAsInputLanguage(
|
mNeedsToDisplayLanguage.updateIsSystemLanguageSameAsInputLanguage(
|
||||||
mCurrentSystemLocale.equals(newLocale));
|
mCurrentSystemLocale.equals(newLocale));
|
||||||
|
|
||||||
|
if (newSubtype.equals(mCurrentSubtype)) return;
|
||||||
|
|
||||||
mCurrentSubtype = newSubtype;
|
mCurrentSubtype = newSubtype;
|
||||||
updateShortcutIME();
|
updateShortcutIME();
|
||||||
mService.onRefreshKeyboard();
|
mService.onRefreshKeyboard();
|
||||||
|
|
Loading…
Reference in a new issue