music: correctly provide album parent context
This commit is contained in:
@@ -220,7 +220,7 @@ private constructor(
|
|||||||
is DetailSection.Discs ->
|
is DetailSection.Discs ->
|
||||||
section.discs.flatMap { (disc, songs) ->
|
section.discs.flatMap { (disc, songs) ->
|
||||||
val discString = disc.resolve(context)
|
val discString = disc.resolve(context)
|
||||||
songs.map { it.toMediaItem(context, header(discString)) }
|
songs.map { it.toMediaItem(context, header(discString), child(detail.parent)) }
|
||||||
}
|
}
|
||||||
else -> error("Unknown section type: $section")
|
else -> error("Unknown section type: $section")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user