This commit is contained in:
Victor Shcherb 2015-11-05 09:50:16 +01:00
parent c06fbdd286
commit bae6dd3914

View file

@ -43,14 +43,14 @@ public class FavoriteImageDrawable extends Drawable {
listDrawable = getResources().getDrawable(R.drawable.ic_action_fav_dark); listDrawable = getResources().getDrawable(R.drawable.ic_action_fav_dark);
listDrawable.setColorFilter(new PorterDuffColorFilter(col, PorterDuff.Mode.SRC_IN));
paintOuter = new Paint(); paintOuter = new Paint();
paintOuter.setAntiAlias(true); paintOuter.setAntiAlias(true);
paintOuter.setStyle(Style.FILL_AND_STROKE); paintOuter.setStyle(Style.FILL_AND_STROKE);
paintInnerCircle = new Paint(); paintInnerCircle = new Paint();
paintInnerCircle.setStyle(Style.FILL_AND_STROKE); paintInnerCircle.setStyle(Style.FILL_AND_STROKE);
paintOuter.setColor(color == 0 || color == Color.BLACK ? 0x88555555 : color); paintOuter.setColor(color == 0 || color == Color.BLACK ? 0x88555555 : color);
paintInnerCircle.setColor(color == 0 || color == Color.BLACK ? getResources().getColor(R.color.color_favorite) paintInnerCircle.setColor(Color.WHITE);
: color);
paintInnerCircle.setAntiAlias(true); paintInnerCircle.setAntiAlias(true);
} }