aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2013-11-07 10:18:36 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-11-07 10:18:37 +0000
commit6bc32968b9986a8cb6d76764ab532cffe96944b1 (patch)
tree26c6cca260ea851a1a7bceeff8f070ff3744fc39 /java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
parent180419b20ce103289225aebeed8ef3229b8021c1 (diff)
parent4d49908682ccf2a0f709bf8e4da0755695a39518 (diff)
downloadlatinime-6bc32968b9986a8cb6d76764ab532cffe96944b1.tar.gz
latinime-6bc32968b9986a8cb6d76764ab532cffe96944b1.tar.xz
latinime-6bc32968b9986a8cb6d76764ab532cffe96944b1.zip
Merge "Move reference char/digit width/height method to TypefaceUtils"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
index acd47450b..0e1a33a6c 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
@@ -75,7 +75,7 @@ public final class MoreSuggestions extends Keyboard {
while (index < size) {
final String word = suggestedWords.getWord(index);
// TODO: Should take care of text x-scaling.
- mWidths[index] = (int)(TypefaceUtils.getLabelWidth(word, paint) + padding);
+ mWidths[index] = (int)(TypefaceUtils.getStringWidth(word, paint) + padding);
final int numColumn = index - rowStartIndex + 1;
final int columnWidth =
(maxWidth - mDividerWidth * (numColumn - 1)) / numColumn;