diff options
author | 2014-02-14 06:19:52 +0000 | |
---|---|---|
committer | 2014-02-14 06:19:52 +0000 | |
commit | 32a7e079e0f66c23405880bc228edcbaa42bd945 (patch) | |
tree | cce6249125dad84f34f9fa9cf93c1d045d81dbf6 /java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java | |
parent | 42e4ea7d6cdaddcd2b055d3d8ddf04c86dba2575 (diff) | |
parent | a273319c59ad24070ee5b35d72f044df496faa02 (diff) | |
download | latinime-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.java | 4 |
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, |