Show the offline playlist regardless the grid expanded state (#162)

This commit is contained in:
vfsfitvnm 2022-08-03 21:29:00 +02:00
parent 2eea488fc9
commit 52af3df1c6

View file

@ -481,21 +481,19 @@ fun HomeScreen() {
) )
} }
if (playlistGridExpanded) { item(key = "offline") {
item(key = "offline") { BuiltInPlaylistItem(
BuiltInPlaylistItem( icon = R.drawable.airplane,
icon = R.drawable.airplane, colorTint = colorPalette.blue,
colorTint = colorPalette.blue, name = "Offline",
name = "Offline", modifier = Modifier
modifier = Modifier .padding(all = 8.dp)
.padding(all = 8.dp) .clickable(
.clickable( indication = rememberRipple(bounded = true),
indication = rememberRipple(bounded = true), interactionSource = remember { MutableInteractionSource() },
interactionSource = remember { MutableInteractionSource() }, onClick = { builtInPlaylistRoute(BuiltInPlaylist.Offline) }
onClick = { builtInPlaylistRoute(BuiltInPlaylist.Offline) } )
) )
)
}
} }
items( items(