diff options
author | 2014-10-14 06:45:26 +0000 | |
---|---|---|
committer | 2014-10-14 06:45:26 +0000 | |
commit | cbffb7958489659856433049f55a0b7b0519b94c (patch) | |
tree | 24b11d36df0a5386e4ee780b924b856a96ce95b2 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 5f8823c1ce67979db4f696a979171ee4694718cd (diff) | |
parent | 95f100ba404c3f905739db628ec71b7c1b7b5ace (diff) | |
download | latinime-cbffb7958489659856433049f55a0b7b0519b94c.tar.gz latinime-cbffb7958489659856433049f55a0b7b0519b94c.tar.xz latinime-cbffb7958489659856433049f55a0b7b0519b94c.zip |
am 95f100ba: Merge "Performance fix for multiple language subtypes"
* commit '95f100ba404c3f905739db628ec71b7c1b7b5ace':
Performance fix for multiple language subtypes
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 3b995f9d9..77016cb8b 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -568,6 +568,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // TODO: Resolve mutual dependencies of {@link #loadSettings()} and // {@link #resetDictionaryFacilitatorIfNecessary()}. loadSettings(); + mSubtypeSwitcher.onSubtypeChanged(mRichImm.getCurrentRawSubtype()); resetDictionaryFacilitatorIfNecessary(); // Register to receive ringer mode change and network state change. @@ -837,8 +838,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen public void onCurrentInputMethodSubtypeChanged(final InputMethodSubtype subtype) { // Note that the calling sequence of onCreate() and onCurrentInputMethodSubtypeChanged() // is not guaranteed. It may even be called at the same time on a different thread. - final RichInputMethodSubtype richSubtype = new RichInputMethodSubtype(subtype); - mSubtypeSwitcher.onSubtypeChanged(richSubtype); + mSubtypeSwitcher.onSubtypeChanged(subtype); mInputLogic.onSubtypeChanged(SubtypeLocaleUtils.getCombiningRulesExtraValue(subtype), mSettings.getCurrent()); loadKeyboard(); |