Let the json file use the timestamp name since seconds are fixed.
This commit is contained in:
parent
b01a900fd3
commit
d6a14956e1
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ object FileHelper {
|
||||||
|
|
||||||
/* Creates Uri for json track file */
|
/* Creates Uri for json track file */
|
||||||
fun getTrackFileUri(context: Context, track: Track): Uri {
|
fun getTrackFileUri(context: Context, track: Track): Uri {
|
||||||
val fileName: String = track.id.toString() + Keys.TRACKBOOK_FILE_EXTENSION
|
val fileName: String = DateTimeHelper.convertToSortableDateString(track.recordingStart) + Keys.TRACKBOOK_FILE_EXTENSION
|
||||||
return File(context.getExternalFilesDir(Keys.FOLDER_TRACKS), fileName).toUri()
|
return File(context.getExternalFilesDir(Keys.FOLDER_TRACKS), fileName).toUri()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue