Fix the ellipses image scaling of LatinIME

Bug: 23082844
Change-Id: I7baac5e5a0700280906fd0f5f9351fc8dfc4c2b3
(cherry picked from commit 990e9a75b6d88ba234131612f11eac6b69c1cf84)
This commit is contained in:
Mohammadinamul Sheik 2015-08-12 10:43:37 -07:00
parent 0497f6d34d
commit b0dd5cc7b2

View file

@ -191,7 +191,9 @@ final class SuggestionStripLayoutHelper {
final Bitmap buffer = Bitmap.createBitmap(width, (height * 3 / 2), Bitmap.Config.ARGB_8888); final Bitmap buffer = Bitmap.createBitmap(width, (height * 3 / 2), Bitmap.Config.ARGB_8888);
final Canvas canvas = new Canvas(buffer); final Canvas canvas = new Canvas(buffer);
canvas.drawText(MORE_SUGGESTIONS_HINT, width / 2, height, paint); 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, private CharSequence getStyledSuggestedWord(final SuggestedWords suggestedWords,