diff options
| author | Ken Wakasa <kwakasa@google.com> | 2014-10-14 06:42:13 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-10-14 06:42:14 +0000 |
| commit | 95f100ba404c3f905739db628ec71b7c1b7b5ace (patch) | |
| tree | 8baa8c100a44e28f5cc8260de74ac86557c2acd9 /java/src/com/android/inputmethod/latin/RichInputMethodManager.java | |
| parent | 9959140f15edcb32c21406e3cff80ad6856e83c9 (diff) | |
| parent | d15f6e8c98f673dc38100e2fe3e359f46f7358a4 (diff) | |
Merge "Performance fix for multiple language subtypes"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/RichInputMethodManager.java')
| -rw-r--r-- | java/src/com/android/inputmethod/latin/RichInputMethodManager.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/latin/RichInputMethodManager.java b/java/src/com/android/inputmethod/latin/RichInputMethodManager.java index b4ec8d674..3fcae58f1 100644 --- a/java/src/com/android/inputmethod/latin/RichInputMethodManager.java +++ b/java/src/com/android/inputmethod/latin/RichInputMethodManager.java @@ -299,13 +299,13 @@ public class RichInputMethodManager { return INDEX_NOT_FOUND; } - public RichInputMethodSubtype getCurrentInputMethodSubtype( - final RichInputMethodSubtype defaultSubtype) { - final InputMethodSubtype currentSubtype = mImmWrapper.mImm.getCurrentInputMethodSubtype(); - if (currentSubtype == null) { - return defaultSubtype; - } - return AdditionalFeaturesSettingUtils.getRichInputMethodSubtype(this, currentSubtype); + public InputMethodSubtype getCurrentRawSubtype() { + return mImmWrapper.mImm.getCurrentInputMethodSubtype(); + } + + public RichInputMethodSubtype createCurrentRichInputMethodSubtype( + final InputMethodSubtype rawSubtype) { + return AdditionalFeaturesSettingUtils.createRichInputMethodSubtype(this, rawSubtype); } public boolean hasMultipleEnabledIMEsOrSubtypes(final boolean shouldIncludeAuxiliarySubtypes) { |
