feat: fetch tracks on-demand, logout button

This commit is contained in:
2026-05-14 03:03:17 +02:00
parent e2ab026e84
commit 83e77f3d0c
7 changed files with 92 additions and 2 deletions

View File

@@ -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)