aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2011-09-23 15:08:23 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-09-23 15:08:23 -0700
commitc66a7278d2e5f475c8b7f1638d1569b7b8b06662 (patch)
tree8c9123d1f8699b44492cf2cd6c64532203f44d04 /java/src
parent1af5db91eda15f45840317b3e5eeef0a524abdbd (diff)
parent9bdce3a59e9bf00095bc92fae88b830b0a8455be (diff)
downloadlatinime-c66a7278d2e5f475c8b7f1638d1569b7b8b06662.tar.gz
latinime-c66a7278d2e5f475c8b7f1638d1569b7b8b06662.tar.xz
latinime-c66a7278d2e5f475c8b7f1638d1569b7b8b06662.zip
Merge "Revert "Use "..." instead of "\u2026"""
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/keyboard/KeyboardView.java2
-rw-r--r--java/src/com/android/inputmethod/latin/SuggestionsView.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardView.java b/java/src/com/android/inputmethod/keyboard/KeyboardView.java
index 8d34b7ee1..5a44460a1 100644
--- a/java/src/com/android/inputmethod/keyboard/KeyboardView.java
+++ b/java/src/com/android/inputmethod/keyboard/KeyboardView.java
@@ -84,7 +84,7 @@ public class KeyboardView extends View implements PointerTracker.DrawingProxy {
private final float mBackgroundDimAmount;
// HORIZONTAL ELLIPSIS "...", character for popup hint.
- private static final String POPUP_HINT_CHAR = "...";
+ private static final String POPUP_HINT_CHAR = "\u2026";
// Margin between the label and the icon on a key that has both of them.
// Specified by the fraction of the key width.
diff --git a/java/src/com/android/inputmethod/latin/SuggestionsView.java b/java/src/com/android/inputmethod/latin/SuggestionsView.java
index 776cea26a..946b9ea73 100644
--- a/java/src/com/android/inputmethod/latin/SuggestionsView.java
+++ b/java/src/com/android/inputmethod/latin/SuggestionsView.java
@@ -155,7 +155,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 = "...";
+ private static final String MORE_SUGGESTIONS_HINT = "\u2026";
private static final CharacterStyle BOLD_SPAN = new StyleSpan(Typeface.BOLD);
private static final CharacterStyle UNDERLINE_SPAN = new UnderlineSpan();
@@ -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, MORE_SUGGESTIONS_HINT.length(), bounds);
+ paint.getTextBounds(MORE_SUGGESTIONS_HINT, 0, 1, bounds);
final int width = Math.round(bounds.width() + 0.5f);
final int height = Math.round(bounds.height() + 0.5f);
final Bitmap buffer = Bitmap.createBitmap(