Fix green download icon everywhere after showing swipe settings dialog
This commit is contained in:
parent
96f8cd3793
commit
9565189be2
|
@ -135,6 +135,7 @@ public class SwipeActionsDialog {
|
|||
item.swipeActionLabel.setText(action.getTitle(context));
|
||||
|
||||
Drawable icon = DrawableCompat.wrap(AppCompatResources.getDrawable(context, action.getActionIcon()));
|
||||
icon.mutate();
|
||||
DrawableCompat.setTintMode(icon, PorterDuff.Mode.SRC_ATOP);
|
||||
if ((direction == LEFT && leftAction == action) || (direction == RIGHT && rightAction == action)) {
|
||||
DrawableCompat.setTint(icon, ThemeUtils.getColorFromAttr(context, action.getActionColor()));
|
||||
|
|
Loading…
Reference in New Issue