Fix share link for YouTube playlists
This commit is contained in:
@@ -194,15 +194,16 @@ fun PlaylistOrAlbumScreen(
|
|||||||
onClick = {
|
onClick = {
|
||||||
menuState.hide()
|
menuState.hide()
|
||||||
|
|
||||||
playlistOrAlbum.valueOrNull?.url?.let { url ->
|
(playlistOrAlbum.valueOrNull?.url
|
||||||
val sendIntent = Intent().apply {
|
?: "https://music.youtube.com/playlist?list=${browseId.removePrefix("VL")}").let { url ->
|
||||||
action = Intent.ACTION_SEND
|
val sendIntent = Intent().apply {
|
||||||
type = "text/plain"
|
action = Intent.ACTION_SEND
|
||||||
putExtra(Intent.EXTRA_TEXT, url)
|
type = "text/plain"
|
||||||
}
|
putExtra(Intent.EXTRA_TEXT, url)
|
||||||
|
}
|
||||||
|
|
||||||
context.startActivity(Intent.createChooser(sendIntent, null))
|
context.startActivity(Intent.createChooser(sendIntent, null))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user