aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2011-09-24 09:38:45 +0900
committerKen Wakasa <kwakasa@google.com>2011-09-24 09:38:45 +0900
commitc9f562a9a4c2b634eb43d1ddaef69068c0d93f6f (patch)
treee52be3f40949ef589a85efc82c98d18508313f81 /java/src
parent141c62192b458f488810026103cec90a676e9044 (diff)
downloadlatinime-c9f562a9a4c2b634eb43d1ddaef69068c0d93f6f.tar.gz
latinime-c9f562a9a4c2b634eb43d1ddaef69068c0d93f6f.tar.xz
latinime-c9f562a9a4c2b634eb43d1ddaef69068c0d93f6f.zip
Partially revert I0fa5eefc
bug: 5344295 Change-Id: Idb10e37862773a62ff60afe874844e8968a58b5d
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/SuggestionsView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestionsView.java b/java/src/com/android/inputmethod/latin/SuggestionsView.java
index 946b9ea73..196148731 100644
--- a/java/src/com/android/inputmethod/latin/SuggestionsView.java
+++ b/java/src/com/android/inputmethod/latin/SuggestionsView.java
@@ -237,7 +237,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
paint.setTextSize(textSize);
paint.setColor(color);
final Rect bounds = new Rect();
- paint.getTextBounds(MORE_SUGGESTIONS_HINT, 0, 1, bounds);
+ paint.getTextBounds(MORE_SUGGESTIONS_HINT, 0, MORE_SUGGESTIONS_HINT.length(), bounds);
final int width = Math.round(bounds.width() + 0.5f);
final int height = Math.round(bounds.height() + 0.5f);
final Bitmap buffer = Bitmap.createBitmap(