[android] Fixed ratingview tinting on Prelolipop devices

This commit is contained in:
Александр Зацепин 2017-10-18 20:09:45 +03:00 committed by r.kuznetsov
parent 7b830f9226
commit 60aa9d224e

View file

@ -78,7 +78,7 @@ public class RatingView extends View
mBackgroundPaint.setColor(mRatingColor);
mBackgroundPaint.setAlpha(31 /* 12% */);
if (mDrawSmile)
mDrawable = res.getDrawable(impress.getDrawableId());
mDrawable = DrawableCompat.wrap(res.getDrawable(impress.getDrawableId()));
mTextPaint.setColor(mRatingColor);
invalidate();
requestLayout();