am b0dd5cc7: Fix the ellipses image scaling of LatinIME

* commit 'b0dd5cc7b235bf6e0aa59e83a58b1e902a2ff372':
  Fix the ellipses image scaling of LatinIME
This commit is contained in:
Mohammadinamul Sheik 2015-08-12 20:28:44 +00:00 committed by Android Git Automerger
commit 4df605df74

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,