aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2014-10-14 06:42:13 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-10-14 06:42:14 +0000
commit95f100ba404c3f905739db628ec71b7c1b7b5ace (patch)
tree8baa8c100a44e28f5cc8260de74ac86557c2acd9 /java/src/com/android/inputmethod/latin/LatinIME.java
parent9959140f15edcb32c21406e3cff80ad6856e83c9 (diff)
parentd15f6e8c98f673dc38100e2fe3e359f46f7358a4 (diff)
downloadlatinime-95f100ba404c3f905739db628ec71b7c1b7b5ace.tar.gz
latinime-95f100ba404c3f905739db628ec71b7c1b7b5ace.tar.xz
latinime-95f100ba404c3f905739db628ec71b7c1b7b5ace.zip
Merge "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.java4
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();