MediaFile: add track number to toString (if available).
This commit is contained in:
parent
ad693e608e
commit
0f21c48e66
@ -15,8 +15,10 @@ public class MediaFile extends Model {
|
|||||||
public String fileHash;
|
public String fileHash;
|
||||||
public String metaInfoSource = TAG_INFO;
|
public String metaInfoSource = TAG_INFO;
|
||||||
public Timestamp dateAdded = new Timestamp(new Date().getTime());
|
public Timestamp dateAdded = new Timestamp(new Date().getTime());
|
||||||
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