Fix FID
This commit is contained in:
parent
c06fbdd286
commit
bae6dd3914
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue