MediaFile: add track number to toString (if available).
This commit is contained in:
parent
ad693e608e
commit
0f21c48e66
@ -18,5 +18,7 @@ public class MediaFile extends Model {
|
|||||||
public Timestamp lastPlayed;
|
public Timestamp lastPlayed;
|
||||||
public String comment;
|
public String comment;
|
||||||
|
|
||||||
public String toString() { return name; }
|
public String toString() {
|
||||||
|
if (trackNumber != null) return trackNumber + " - " + name;
|
||||||
|
else return name; }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user