Song: add isDownloaded() method.
This commit is contained in:
parent
983b4b0123
commit
76921f6855
|
@ -75,6 +75,11 @@ public class Song
|
||||||
return song;
|
return song;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isDownloaded()
|
||||||
|
{
|
||||||
|
return (location != null && location.exists() && location.canRead());
|
||||||
|
}
|
||||||
|
|
||||||
public String getTitle()
|
public String getTitle()
|
||||||
{
|
{
|
||||||
return title;
|
return title;
|
||||||
|
@ -191,5 +196,4 @@ public class Song
|
||||||
return formats.get(0);
|
return formats.get(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue