Messaging: change Avatar fontFamily to sans-serif-medium

Match the changes in ContactsCommon

Test: m
Change-Id: Ica94f00e6121c550ea0bc1dfe73a52162dccda71
This commit is contained in:
Altaf-Mahdi
2015-12-09 19:24:35 +00:00
committed by Luca Stefani
parent 050bc461fc
commit cce5e8de2f

View File

@@ -161,7 +161,7 @@ public class AvatarRequest extends UriImageRequest<AvatarRequestDescriptor> {
getBackgroundColor()); getBackgroundColor());
final Resources resources = mContext.getResources(); final Resources resources = mContext.getResources();
final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG); final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
paint.setTypeface(Typeface.create("sans-serif-thin", Typeface.NORMAL)); paint.setTypeface(Typeface.create("sans-serif-medium", Typeface.NORMAL));
paint.setColor(resources.getColor(R.color.letter_tile_font_color)); paint.setColor(resources.getColor(R.color.letter_tile_font_color));
final float letterToTileRatio = resources.getFraction(R.dimen.letter_to_tile_ratio, 1, 1); final float letterToTileRatio = resources.getFraction(R.dimen.letter_to_tile_ratio, 1, 1);
paint.setTextSize(letterToTileRatio * minOfWidthAndHeight); paint.setTextSize(letterToTileRatio * minOfWidthAndHeight);