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)
|
.setName(fileName)
|
||||||
.setSize(size)
|
.setSize(size)
|
||||||
.addAllChunkIds(chunkIds)
|
.addAllChunkIds(chunkIds)
|
||||||
|
.setIsFavorite(isFavorite)
|
||||||
.setVolume(if (volume == MediaStore.VOLUME_EXTERNAL_PRIMARY) "" else volume)
|
.setVolume(if (volume == MediaStore.VOLUME_EXTERNAL_PRIMARY) "" else volume)
|
||||||
if (lastModified != null) {
|
if (lastModified != null) {
|
||||||
builder.lastModified = lastModified
|
builder.lastModified = lastModified
|
||||||
|
@ -107,6 +108,9 @@ internal data class MediaFile(
|
||||||
if (zipIndex != null) {
|
if (zipIndex != null) {
|
||||||
builder.zipIndex = zipIndex
|
builder.zipIndex = zipIndex
|
||||||
}
|
}
|
||||||
|
if (ownerPackageName != null) {
|
||||||
|
builder.setOwnerPackageName(ownerPackageName)
|
||||||
|
}
|
||||||
return builder.build()
|
return builder.build()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue