aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-02-14 06:19:52 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-14 06:19:52 +0000
commit32a7e079e0f66c23405880bc228edcbaa42bd945 (patch)
treecce6249125dad84f34f9fa9cf93c1d045d81dbf6 /java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
parent42e4ea7d6cdaddcd2b055d3d8ddf04c86dba2575 (diff)
parenta273319c59ad24070ee5b35d72f044df496faa02 (diff)
downloadlatinime-32a7e079e0f66c23405880bc228edcbaa42bd945.tar.gz
latinime-32a7e079e0f66c23405880bc228edcbaa42bd945.tar.xz
latinime-32a7e079e0f66c23405880bc228edcbaa42bd945.zip
Merge "Add PunctuationSuggestions class"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
index 2f4c1839b..a104baa08 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
@@ -74,7 +74,7 @@ public final class MoreSuggestions extends Keyboard {
int rowStartIndex = fromIndex;
final int size = Math.min(suggestedWords.size(), SuggestedWords.MAX_SUGGESTIONS);
while (index < size) {
- final String word = suggestedWords.getWord(index);
+ final String word = suggestedWords.getLabel(index);
// TODO: Should take care of text x-scaling.
mWidths[index] = (int)(TypefaceUtils.getStringWidth(word, paint) + padding);
final int numColumn = index - rowStartIndex + 1;
@@ -206,7 +206,7 @@ public final class MoreSuggestions extends Keyboard {
final int x = params.getX(index);
final int y = params.getY(index);
final int width = params.getWidth(index);
- final String word = mSuggestedWords.getWord(index);
+ final String word = mSuggestedWords.getLabel(index);
final String info = mSuggestedWords.getDebugString(index);
final int indexInMoreSuggestions = index + SUGGESTION_CODE_BASE;
final Key key = new Key(word, KeyboardIconsSet.ICON_UNDEFINED,