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() } }