mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-31 10:54:50 +01:00
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));
|
item.swipeActionLabel.setText(action.getTitle(context));
|
||||||
|
|
||||||
Drawable icon = DrawableCompat.wrap(AppCompatResources.getDrawable(context, action.getActionIcon()));
|
Drawable icon = DrawableCompat.wrap(AppCompatResources.getDrawable(context, action.getActionIcon()));
|
||||||
|
icon.mutate();
|
||||||
DrawableCompat.setTintMode(icon, PorterDuff.Mode.SRC_ATOP);
|
DrawableCompat.setTintMode(icon, PorterDuff.Mode.SRC_ATOP);
|
||||||
if ((direction == LEFT && leftAction == action) || (direction == RIGHT && rightAction == action)) {
|
if ((direction == LEFT && leftAction == action) || (direction == RIGHT && rightAction == action)) {
|
||||||
DrawableCompat.setTint(icon, ThemeUtils.getColorFromAttr(context, action.getActionColor()));
|
DrawableCompat.setTint(icon, ThemeUtils.getColorFromAttr(context, action.getActionColor()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user