From ff3956d9c4cb03c64380c28b98e4d8f27b7f7d37 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Fri, 16 Aug 2024 15:13:47 -0300 Subject: [PATCH] store owner of media file and whether it is marked favorite --- .../java/org/calyxos/backup/storage/content/ContentFile.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/storage/lib/src/main/java/org/calyxos/backup/storage/content/ContentFile.kt b/storage/lib/src/main/java/org/calyxos/backup/storage/content/ContentFile.kt index 32b16314..73347f48 100644 --- a/storage/lib/src/main/java/org/calyxos/backup/storage/content/ContentFile.kt +++ b/storage/lib/src/main/java/org/calyxos/backup/storage/content/ContentFile.kt @@ -100,6 +100,7 @@ internal data class MediaFile( .setName(fileName) .setSize(size) .addAllChunkIds(chunkIds) + .setIsFavorite(isFavorite) .setVolume(if (volume == MediaStore.VOLUME_EXTERNAL_PRIMARY) "" else volume) if (lastModified != null) { builder.lastModified = lastModified @@ -107,6 +108,9 @@ internal data class MediaFile( if (zipIndex != null) { builder.zipIndex = zipIndex } + if (ownerPackageName != null) { + builder.setOwnerPackageName(ownerPackageName) + } return builder.build() } }