From 893ac343626d4edf9ddb4b1dd164fed701f0efe8 Mon Sep 17 00:00:00 2001 From: Omar Date: Thu, 3 Mar 2022 14:13:44 +0200 Subject: [PATCH] Added functionality of showing last modification date --- .../code/name/monkey/retromusic/dialogs/SongDetailDialog.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/code/name/monkey/retromusic/dialogs/SongDetailDialog.kt b/app/src/main/java/code/name/monkey/retromusic/dialogs/SongDetailDialog.kt index 08ddbbe1a..85d3569bf 100644 --- a/app/src/main/java/code/name/monkey/retromusic/dialogs/SongDetailDialog.kt +++ b/app/src/main/java/code/name/monkey/retromusic/dialogs/SongDetailDialog.kt @@ -49,6 +49,7 @@ class SongDetailDialog : DialogFragment() { val fileName: TextView = dialogView.findViewById(R.id.fileName) val filePath: TextView = dialogView.findViewById(R.id.filePath) 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 trackLength: TextView = dialogView.findViewById(R.id.trackLength) 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) filePath.text = makeTextWithTitle(context, R.string.label_file_path, songFile.absolutePath) + + dateModified.text = makeTextWithTitle(context, R.string.label_last_modified, + MusicUtil.getDateModifiedString(songFile.lastModified())) + fileSize.text = makeTextWithTitle( context,