diff options
author | 2014-08-18 20:20:20 +0900 | |
---|---|---|
committer | 2014-08-22 16:34:27 +0900 | |
commit | 8ffe4bc9321e582a4d882f21e465d5886616f489 (patch) | |
tree | d87b69289b18a68d39a289e1e66ded06da583253 /java/src/com/android/inputmethod/compat | |
parent | 5a96395b78df7e201c580515ec9f54609a474a2d (diff) | |
download | latinime-8ffe4bc9321e582a4d882f21e465d5886616f489.tar.gz latinime-8ffe4bc9321e582a4d882f21e465d5886616f489.tar.xz latinime-8ffe4bc9321e582a4d882f21e465d5886616f489.zip |
[ML1] Introduce RichInputMethodSubtype
Bug: 11230254
Change-Id: Ic7a1bf938a5a186dcff527b556295aba2406e8b9
Diffstat (limited to 'java/src/com/android/inputmethod/compat')
-rw-r--r-- | java/src/com/android/inputmethod/compat/InputMethodSubtypeCompatUtils.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/compat/InputMethodSubtypeCompatUtils.java b/java/src/com/android/inputmethod/compat/InputMethodSubtypeCompatUtils.java index 365867257..3abfa3fc9 100644 --- a/java/src/com/android/inputmethod/compat/InputMethodSubtypeCompatUtils.java +++ b/java/src/com/android/inputmethod/compat/InputMethodSubtypeCompatUtils.java @@ -20,7 +20,7 @@ import android.os.Build; import android.view.inputmethod.InputMethodSubtype; import com.android.inputmethod.annotations.UsedForTesting; -import com.android.inputmethod.latin.Constants; +import com.android.inputmethod.latin.RichInputMethodSubtype; import java.lang.reflect.Constructor; import java.lang.reflect.Method; @@ -64,9 +64,12 @@ public final class InputMethodSubtypeCompatUtils { overridesImplicitlyEnabledSubtype, id); } + public static boolean isAsciiCapable(final RichInputMethodSubtype subtype) { + return isAsciiCapable(subtype.getRawSubtype()); + } + public static boolean isAsciiCapable(final InputMethodSubtype subtype) { - return isAsciiCapableWithAPI(subtype) - || subtype.containsExtraValueKey(Constants.Subtype.ExtraValue.ASCII_CAPABLE); + return InputMethodSubtypeCompatUtils.isAsciiCapableWithAPI(subtype); } @UsedForTesting |