store owner of media file and whether it is marked favorite

This commit is contained in:
Torsten Grote 2024-08-16 15:13:47 -03:00
parent bebb9005da
commit ff3956d9c4
No known key found for this signature in database
GPG key ID: 3E5F77D92CF891FF

View file

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