Fix minor radio bug

This commit is contained in:
vfsfitvnm
2022-06-26 23:07:25 +02:00
parent 3607b041b2
commit 1606885f71
4 changed files with 21 additions and 27 deletions

View File

@@ -159,7 +159,7 @@ fun ArtistScreen(
colorFilter = ColorFilter.tint(colorPalette.text),
modifier = Modifier
.clickable {
binder?.startRadio(artist.shuffleEndpoint)
binder?.playRadio(artist.shuffleEndpoint)
}
.shadow(elevation = 2.dp, shape = CircleShape)
.background(
@@ -176,7 +176,7 @@ fun ArtistScreen(
colorFilter = ColorFilter.tint(colorPalette.text),
modifier = Modifier
.clickable {
binder?.startRadio(artist.radioEndpoint)
binder?.playRadio(artist.radioEndpoint)
}
.shadow(elevation = 2.dp, shape = CircleShape)
.background(

View File

@@ -217,11 +217,11 @@ fun SearchResultScreen(
is YouTube.Item.Playlist -> playlistOrAlbumRoute(item.info.endpoint!!.browseId)
is YouTube.Item.Song -> {
binder?.player?.forcePlay(item.asMediaItem)
binder?.startRadio(item.info.endpoint)
binder?.setupRadio(item.info.endpoint)
}
is YouTube.Item.Video -> {
binder?.player?.forcePlay(item.asMediaItem)
binder?.startRadio(item.info.endpoint)
binder?.setupRadio(item.info.endpoint)
}
}
}