Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,11 @@ fun QueueBottomSheet(
queueData?.data?.listTracks ?: emptyList()
}
}
val currentSongIndex by remember(queue, songEntity) {
derivedStateOf {
musicServiceHandler.currentOrderIndex().takeIf { it > -1 } ?: 0
}
}
val loadMoreState by remember {
derivedStateOf {
queueData?.queueState ?: QueueData.StateSource.STATE_CREATED
Expand Down Expand Up @@ -1167,7 +1172,7 @@ fun QueueBottomSheet(
) { _ ->
SongFullWidthItems(
track = track,
isPlaying = track.videoId == songEntity?.videoId,
isPlaying = index == currentSongIndex,
modifier =
Modifier
.fillMaxWidth(),
Expand Down
Loading