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

@ -18,5 +18,7 @@ public class MediaFile extends Model {
public Timestamp lastPlayed;
public String comment;
public String toString() { return name; }
public String toString() {
if (trackNumber != null) return trackNumber + " - " + name;
else return name; }
}