am a289e139: am b0dd5cc7: Fix the ellipses image scaling of LatinIME

* commit 'a289e13927e7cd2e3d16edb96f56ced777b4c920':
  Fix the ellipses image scaling of LatinIME
main
Mohammadinamul Sheik 2015-08-12 20:37:57 +00:00 committed by Android Git Automerger
commit 81f9a0d8f3
1 changed files with 3 additions and 1 deletions

View File

@ -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,