Merge pull request #5366 from ByteHamster/fix-green-download

Fix green download icon everywhere after showing swipe settings dialog
This commit is contained in:
ByteHamster 2021-08-28 13:23:12 +02:00 committed by GitHub
commit b2dc57a454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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