summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/dialog
diff options
context:
space:
mode:
authorTacoTheDank <SkytkRSfan3895@gmail.com>2023-05-14 17:02:34 -0400
committerTacoTheDank <SkytkRSfan3895@gmail.com>2023-05-14 17:02:34 -0400
commitcf4345564c13b72b805d7aac58e88559e77643b9 (patch)
treeb999a8f3dac2db01b16f6aa58d98249cd3582078 /app/src/main/java/de/danoeh/antennapod/dialog
parent90d6095dad5c53435f8dc4ee7e9641bece42d39b (diff)
downloadAntennaPod-cf4345564c13b72b805d7aac58e88559e77643b9.zip
Remove no longer needed Compat stuff
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/dialog')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/dialog/SwipeActionsDialog.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/SwipeActionsDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/SwipeActionsDialog.java
index 4e579fce4..257158f15 100644
--- a/app/src/main/java/de/danoeh/antennapod/dialog/SwipeActionsDialog.java
+++ b/app/src/main/java/de/danoeh/antennapod/dialog/SwipeActionsDialog.java
@@ -156,12 +156,12 @@ public class SwipeActionsDialog {
Drawable icon = DrawableCompat.wrap(AppCompatResources.getDrawable(context, action.getActionIcon()));
icon.mutate();
- DrawableCompat.setTintMode(icon, PorterDuff.Mode.SRC_ATOP);
+ icon.setTintMode(PorterDuff.Mode.SRC_ATOP);
if ((direction == LEFT && leftAction == action) || (direction == RIGHT && rightAction == action)) {
- DrawableCompat.setTint(icon, ThemeUtils.getColorFromAttr(context, action.getActionColor()));
+ icon.setTint(ThemeUtils.getColorFromAttr(context, action.getActionColor()));
item.swipeActionLabel.setTextColor(ThemeUtils.getColorFromAttr(context, action.getActionColor()));
} else {
- DrawableCompat.setTint(icon, ThemeUtils.getColorFromAttr(context, R.attr.action_icon_color));
+ icon.setTint(ThemeUtils.getColorFromAttr(context, R.attr.action_icon_color));
}
item.swipeIcon.setImageDrawable(icon);