mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +01:00
close offline detail screens when their downloads are gone
This commit is contained in:
@@ -45,6 +45,8 @@ class AlbumDetailViewModel(
|
||||
|
||||
val downloads: StateFlow<Map<String, SongDownload>> = downloadRepository.states()
|
||||
|
||||
val offline: StateFlow<Boolean> = sourceRepository.offline
|
||||
|
||||
val downloadStatus: StateFlow<ListDownloadStatus> =
|
||||
sourceId
|
||||
.flatMapLatest { downloadRepository.status(it, DownloadList.Album, albumId) }
|
||||
|
||||
Reference in New Issue
Block a user