diff options
author | 2014-02-13 22:21:01 -0800 | |
---|---|---|
committer | 2014-02-13 22:21:01 -0800 | |
commit | 65507d5fb1073490d7e389e9a74be8f1b0466914 (patch) | |
tree | e410cc914a2973a599ac35c2b47c36eebfc37973 /java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java | |
parent | 8cdd284d5908916500c5db52357e647258f4494f (diff) | |
parent | 32a7e079e0f66c23405880bc228edcbaa42bd945 (diff) | |
download | latinime-65507d5fb1073490d7e389e9a74be8f1b0466914.tar.gz latinime-65507d5fb1073490d7e389e9a74be8f1b0466914.tar.xz latinime-65507d5fb1073490d7e389e9a74be8f1b0466914.zip |
am 32a7e079: Merge "Add PunctuationSuggestions class"
* commit '32a7e079e0f66c23405880bc228edcbaa42bd945':
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, |