diff options
author | ByteHamster <info@bytehamster.com> | 2020-03-18 00:34:10 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-03-18 00:34:10 +0100 |
commit | 13bab7f916ad107cd4e424532eea6335c59a525c (patch) | |
tree | 2be41f594e05d1ef2f88a9e4b924f5837591f078 /app/src/main/java/de/danoeh/antennapod/adapter/actionbutton | |
parent | 85cbebcae18199068ae8e3ccd622660069f35203 (diff) | |
download | AntennaPod-13bab7f916ad107cd4e424532eea6335c59a525c.zip |
Fixed delete button visibility
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/adapter/actionbutton')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/DeleteActionButton.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/DeleteActionButton.java b/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/DeleteActionButton.java index 4d1ae76a2..45cce23b8 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/DeleteActionButton.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/DeleteActionButton.java @@ -38,6 +38,6 @@ public class DeleteActionButton extends ItemActionButton { @Override public int getVisibility() { - return (item.isPlayed()) ? View.INVISIBLE : View.VISIBLE; + return (item.getMedia() != null && item.getMedia().isDownloaded()) ? View.VISIBLE : View.INVISIBLE; } } |