Inline DownloadQueue into Downloader (#9159)
* Move statusFlow and progressFlow to DownloadManager * Inline DownloadQueue into Downloader * Move reorderQueue implementation to Downloader
This commit is contained in:
@@ -427,7 +427,7 @@ class MangaInfoScreenModel(
|
||||
|
||||
private fun observeDownloads() {
|
||||
coroutineScope.launchIO {
|
||||
downloadManager.queue.statusFlow()
|
||||
downloadManager.statusFlow()
|
||||
.filter { it.manga.id == successState?.manga?.id }
|
||||
.catch { error -> logcat(LogPriority.ERROR, error) }
|
||||
.collect {
|
||||
@@ -438,7 +438,7 @@ class MangaInfoScreenModel(
|
||||
}
|
||||
|
||||
coroutineScope.launchIO {
|
||||
downloadManager.queue.progressFlow()
|
||||
downloadManager.progressFlow()
|
||||
.filter { it.manga.id == successState?.manga?.id }
|
||||
.catch { error -> logcat(LogPriority.ERROR, error) }
|
||||
.collect {
|
||||
|
||||
Reference in New Issue
Block a user