feat: fetch tracks on-demand, logout button
This commit is contained in:
@@ -83,6 +83,11 @@ fun LibraryScreen(
|
||||
.fillMaxWidth()
|
||||
.clickable {
|
||||
scope.launch {
|
||||
val err = viewModel.syncPlaylistDetailForLibraryOpen(playlist.id)
|
||||
if (err != null) {
|
||||
Toast.makeText(context, err, Toast.LENGTH_LONG).show()
|
||||
return@launch
|
||||
}
|
||||
val hasPaired =
|
||||
viewModel.hasPairedTracks(playlist.id)
|
||||
onPlaylistSelected(playlist, hasPaired)
|
||||
|
||||
Reference in New Issue
Block a user