mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-25 08:21:59 +01:00
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
Block a user