aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorMohammadinamul Sheik <inamul@google.com>2015-08-12 20:53:55 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-12 20:53:55 +0000
commit4009e4dede2be5f12bedffb9139a4eb7d6b88978 (patch)
treeedb91ce7e7c9dc6d33389277e2e2adcac1d36854 /java/src
parent683b14d93eb93a4ea33578acf2b744e639f43414 (diff)
parentc1ebf8ee23116fddeb2c6b3260fc7f691854b193 (diff)
downloadlatinime-4009e4dede2be5f12bedffb9139a4eb7d6b88978.tar.gz
latinime-4009e4dede2be5f12bedffb9139a4eb7d6b88978.tar.xz
latinime-4009e4dede2be5f12bedffb9139a4eb7d6b88978.zip
am c1ebf8ee: am 81f9a0d8: am a289e139: am b0dd5cc7: Fix the ellipses image scaling of LatinIME
* commit 'c1ebf8ee23116fddeb2c6b3260fc7f691854b193': Fix the ellipses image scaling of LatinIME
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
index d8926ffba..9577d0913 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
@@ -191,7 +191,9 @@ final class SuggestionStripLayoutHelper {
final Bitmap buffer = Bitmap.createBitmap(width, (height * 3 / 2), Bitmap.Config.ARGB_8888);
final Canvas canvas = new Canvas(buffer);
canvas.drawText(MORE_SUGGESTIONS_HINT, width / 2, height, paint);
- return new BitmapDrawable(res, buffer);
+ BitmapDrawable bitmapDrawable = new BitmapDrawable(res, buffer);
+ bitmapDrawable.setTargetDensity(canvas);
+ return bitmapDrawable;
}
private CharSequence getStyledSuggestedWord(final SuggestedWords suggestedWords,