store owner of media file and whether it is marked favorite
This commit is contained in:
parent
bebb9005da
commit
ff3956d9c4
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue