Fixed delete button visibility

This commit is contained in:
ByteHamster 2020-03-18 00:34:10 +01:00
parent 85cbebcae1
commit 13bab7f916

View File

@ -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;
}
}