aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/SuggestedWords.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2013-07-05 10:34:14 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-07-05 10:34:15 +0000
commitbac479bbe1d6daa074c375845bb3af42c931ecbd (patch)
treec4eab91670a31f8194e24847b81df6b30ba2db66 /java/src/com/android/inputmethod/latin/SuggestedWords.java
parent0c6e077875a9a6ef1d46ea26610e18156a81a9fe (diff)
parent4be6198cb73cc24e10834153c4e049644ed187e3 (diff)
downloadlatinime-bac479bbe1d6daa074c375845bb3af42c931ecbd.tar.gz
latinime-bac479bbe1d6daa074c375845bb3af42c931ecbd.tar.xz
latinime-bac479bbe1d6daa074c375845bb3af42c931ecbd.zip
Merge "Reorganize Utils class"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SuggestedWords.java')
-rw-r--r--java/src/com/android/inputmethod/latin/SuggestedWords.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java
index 5b47dda0d..22beaefee 100644
--- a/java/src/com/android/inputmethod/latin/SuggestedWords.java
+++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java
@@ -75,6 +75,21 @@ public final class SuggestedWords {
return mSuggestedWordInfoList.get(index);
}
+ public String getDebugString(final int pos) {
+ if (!LatinImeLogger.sDBG) {
+ return null;
+ }
+ final SuggestedWordInfo wordInfo = getInfo(pos);
+ if (wordInfo == null) {
+ return null;
+ }
+ final String debugString = wordInfo.getDebugString();
+ if (TextUtils.isEmpty(debugString)) {
+ return null;
+ }
+ return debugString;
+ }
+
public boolean willAutoCorrect() {
return mWillAutoCorrect;
}