Do not drop last song in quick picks if trending song is null

This commit is contained in:
vfsfitvnm 2022-10-06 09:20:42 +02:00
parent f68726710b
commit 8fd402b5ce

View file

@ -191,7 +191,7 @@ fun QuickPicks(
} }
items( items(
items = related.songs?.dropLast(1) ?: emptyList(), items = related.songs?.dropLast(if (trending == null) 0 else 1) ?: emptyList(),
key = Innertube.SongItem::key key = Innertube.SongItem::key
) { song -> ) { song ->
SongItem( SongItem(