aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2011-01-20 23:29:53 +0900
committerKen Wakasa <kwakasa@google.com>2011-01-20 23:29:53 +0900
commitfefda4e6df5c2f8e2b2730dfe5b88644a1caaa6b (patch)
tree46cf14151c6a60bb083567547236be23cdc4e2f5 /java/src
parent6845da8d7b940018c4ef77646f0028d131ed2753 (diff)
downloadlatinime-fefda4e6df5c2f8e2b2730dfe5b88644a1caaa6b.tar.gz
latinime-fefda4e6df5c2f8e2b2730dfe5b88644a1caaa6b.tar.xz
latinime-fefda4e6df5c2f8e2b2730dfe5b88644a1caaa6b.zip
Refine InputMethodInfo API
bug: 3370297 Change-Id: I16073e6b8b90a06a20e506dac66e3ca25b4712d0
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/SubtypeSwitcher.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
index 99d31d4d2..da46d26bf 100644
--- a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
+++ b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
@@ -288,9 +288,9 @@ public class SubtypeSwitcher {
if (subtype != null) {
return pm.getDrawable(imiPackageName, subtype.getIconResId(),
imi.getServiceInfo().applicationInfo);
- } else if (imi.getSubtypes().size() > 0 && imi.getSubtypes().get(0) != null) {
+ } else if (imi.getSubtypeCount() > 0 && imi.getSubtypeAt(0) != null) {
return pm.getDrawable(imiPackageName,
- imi.getSubtypes().get(0).getIconResId(),
+ imi.getSubtypeAt(0).getIconResId(),
imi.getServiceInfo().applicationInfo);
} else {
try {