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 18:23:22 +0900
committerTadashi G. Takaoka <takaoka@google.com>2013-07-05 19:24:40 +0900
commit4be6198cb73cc24e10834153c4e049644ed187e3 (patch)
tree14c9f466e43e5f2b24a99deea518e5daafdfbcd2 /java/src/com/android/inputmethod/latin/SuggestedWords.java
parent72c2feb57369527b5f0d2b89505f94503978b928 (diff)
downloadlatinime-4be6198cb73cc24e10834153c4e049644ed187e3.tar.gz
latinime-4be6198cb73cc24e10834153c4e049644ed187e3.tar.xz
latinime-4be6198cb73cc24e10834153c4e049644ed187e3.zip
Reorganize Utils class
Change-Id: I7294d1547def5dcfcae9d1d53b277cb3cc9f2d18
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;
}