MediaFile: add track number to toString (if available).

This commit is contained in:
Jonathan Bernard 2016-03-14 03:49:33 -05:00
parent ad693e608e
commit 0f21c48e66

View File

@ -15,8 +15,10 @@ public class MediaFile extends Model {
public String fileHash;
public String metaInfoSource = TAG_INFO;
public Timestamp dateAdded = new Timestamp(new Date().getTime());
public Timestamp lastPlayed;
public Timestamp lastPlayed;
public String comment;
public String toString() { return name; }
public String toString() {
if (trackNumber != null) return trackNumber + " - " + name;
else return name; }
}