diff options
author | 2011-09-21 14:00:00 +0900 | |
---|---|---|
committer | 2011-09-21 14:00:36 +0900 | |
commit | 8673ceb066ed0dacaff79ac296adf8aae9814a16 (patch) | |
tree | 19613eee87397e6e196e69156db69b0c2796e6c9 /java/src/com/android/inputmethod/latin/SuggestionsView.java | |
parent | 3fc4ddec68b4f56f53ed6da80b5e44f38c085740 (diff) | |
download | latinime-8673ceb066ed0dacaff79ac296adf8aae9814a16.tar.gz latinime-8673ceb066ed0dacaff79ac296adf8aae9814a16.tar.xz latinime-8673ceb066ed0dacaff79ac296adf8aae9814a16.zip |
Use "..." instead of "\u2026"
Because "TRHEE DOT LEADER" glyph of Roboto font is broken, we decide
to use "..." instead.
Bug: 5344295
Change-Id: I0fa5eefc00baf80747ff5215c018619a7e15a58e
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SuggestionsView.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/SuggestionsView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestionsView.java b/java/src/com/android/inputmethod/latin/SuggestionsView.java index 0785169e2..d7e7d5927 100644 --- a/java/src/com/android/inputmethod/latin/SuggestionsView.java +++ b/java/src/com/android/inputmethod/latin/SuggestionsView.java @@ -174,7 +174,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener, private final float mCenterSuggestionWeight; private final int mCenterSuggestionIndex; private final Drawable mMoreSuggestionsHint; - private static final String MORE_SUGGESTIONS_HINT = "\u2026"; + private static final String MORE_SUGGESTIONS_HINT = "..."; private static final CharacterStyle BOLD_SPAN = new StyleSpan(Typeface.BOLD); private static final CharacterStyle UNDERLINE_SPAN = new UnderlineSpan(); @@ -262,7 +262,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( |