Swap start radio and shuffle buttons in ArtistOverview
This commit is contained in:
parent
ae6babb452
commit
f4e839d0d5
1 changed files with 6 additions and 6 deletions
|
@ -93,12 +93,12 @@ fun ArtistOverview(
|
||||||
.padding(endPaddingValues)
|
.padding(endPaddingValues)
|
||||||
) {
|
) {
|
||||||
headerContent {
|
headerContent {
|
||||||
youtubeArtistPage?.radioEndpoint?.let { radioEndpoint ->
|
youtubeArtistPage?.shuffleEndpoint?.let { endpoint ->
|
||||||
SecondaryTextButton(
|
SecondaryTextButton(
|
||||||
text = "Start radio",
|
text = "Shuffle",
|
||||||
onClick = {
|
onClick = {
|
||||||
binder?.stopRadio()
|
binder?.stopRadio()
|
||||||
binder?.playRadio(radioEndpoint)
|
binder?.playRadio(endpoint)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -276,13 +276,13 @@ fun ArtistOverview(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
youtubeArtistPage?.shuffleEndpoint?.let { shuffleEndpoint ->
|
youtubeArtistPage?.radioEndpoint?.let { endpoint ->
|
||||||
FloatingActionsContainerWithScrollToTop(
|
FloatingActionsContainerWithScrollToTop(
|
||||||
scrollState = scrollState,
|
scrollState = scrollState,
|
||||||
iconId = R.drawable.shuffle,
|
iconId = R.drawable.radio,
|
||||||
onClick = {
|
onClick = {
|
||||||
binder?.stopRadio()
|
binder?.stopRadio()
|
||||||
binder?.playRadio(shuffleEndpoint)
|
binder?.playRadio(endpoint)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue