From 94210e89aabc03695eb39ad6b9c3b824daa9573d Mon Sep 17 00:00:00 2001 From: Matthias Emde Date: Mon, 6 Jan 2025 15:56:47 +0100 Subject: [PATCH] fix content values for recordings --- .../main/java/app/musikus/recorder/presentation/Recorder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/musikus/recorder/presentation/Recorder.kt b/app/src/main/java/app/musikus/recorder/presentation/Recorder.kt index 668d2a07..2ea8b41f 100644 --- a/app/src/main/java/app/musikus/recorder/presentation/Recorder.kt +++ b/app/src/main/java/app/musikus/recorder/presentation/Recorder.kt @@ -191,8 +191,8 @@ class Recorder( return ContentValues().apply { put(MediaStore.Audio.Media.MIME_TYPE, "audio/mp4") put(MediaStore.Audio.Media.ALBUM, context.getString(R.string.recorder_content_values_album)) - put(MediaStore.Audio.Media.DATE_ADDED, time.toString()) - put(MediaStore.Audio.Media.DATE_MODIFIED, time.toString()) + put(MediaStore.Audio.Media.DATE_ADDED, time.toEpochSecond()) + put(MediaStore.Audio.Media.DATE_MODIFIED, time.toEpochSecond()) put(MediaStore.Audio.Media.IS_MUSIC, 1) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {