Added functionality of showing last modification date
This commit is contained in:
parent
b456e71c41
commit
893ac34362
1 changed files with 5 additions and 0 deletions
|
@ -49,6 +49,7 @@ class SongDetailDialog : DialogFragment() {
|
||||||
val fileName: TextView = dialogView.findViewById(R.id.fileName)
|
val fileName: TextView = dialogView.findViewById(R.id.fileName)
|
||||||
val filePath: TextView = dialogView.findViewById(R.id.filePath)
|
val filePath: TextView = dialogView.findViewById(R.id.filePath)
|
||||||
val fileSize: TextView = dialogView.findViewById(R.id.fileSize)
|
val fileSize: TextView = dialogView.findViewById(R.id.fileSize)
|
||||||
|
val dateModified: TextView = dialogView.findViewById(R.id.dateModified)
|
||||||
val fileFormat: TextView = dialogView.findViewById(R.id.fileFormat)
|
val fileFormat: TextView = dialogView.findViewById(R.id.fileFormat)
|
||||||
val trackLength: TextView = dialogView.findViewById(R.id.trackLength)
|
val trackLength: TextView = dialogView.findViewById(R.id.trackLength)
|
||||||
val bitRate: TextView = dialogView.findViewById(R.id.bitrate)
|
val bitRate: TextView = dialogView.findViewById(R.id.bitrate)
|
||||||
|
@ -67,6 +68,10 @@ class SongDetailDialog : DialogFragment() {
|
||||||
fileName.text = makeTextWithTitle(context, R.string.label_file_name, songFile.name)
|
fileName.text = makeTextWithTitle(context, R.string.label_file_name, songFile.name)
|
||||||
filePath.text =
|
filePath.text =
|
||||||
makeTextWithTitle(context, R.string.label_file_path, songFile.absolutePath)
|
makeTextWithTitle(context, R.string.label_file_path, songFile.absolutePath)
|
||||||
|
|
||||||
|
dateModified.text = makeTextWithTitle(context, R.string.label_last_modified,
|
||||||
|
MusicUtil.getDateModifiedString(songFile.lastModified()))
|
||||||
|
|
||||||
fileSize.text =
|
fileSize.text =
|
||||||
makeTextWithTitle(
|
makeTextWithTitle(
|
||||||
context,
|
context,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue