Cache album information

This commit is contained in:
vfsfitvnm
2022-06-30 15:33:36 +02:00
parent f126972f2d
commit 3429f27840
7 changed files with 553 additions and 558 deletions

View File

@@ -7,8 +7,8 @@ import androidx.room.PrimaryKey
data class Album(
@PrimaryKey val id: String,
val title: String?,
val thumbnailUrl: String?,
val year: String?,
val authorsText: String?,
val shareUrl: String?
val thumbnailUrl: String? = null,
val year: String? = null,
val authorsText: String? = null,
val shareUrl: String? = null
)

View File

@@ -10,7 +10,8 @@ data class DetailedSong(
@Relation(
entity = SongAlbumMap::class,
entityColumn = "songId",
parentColumn = "id"
parentColumn = "id",
projection = ["albumId"]
)
val albumId: String?,
@Relation(