Fix green download icon everywhere after showing swipe settings dialog

This commit is contained in:
ByteHamster 2021-08-28 12:30:16 +02:00
parent 96f8cd3793
commit 9565189be2
1 changed files with 1 additions and 0 deletions

View File

@ -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()));