Fixed delete button visibility
This commit is contained in:
parent
85cbebcae1
commit
13bab7f916
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue