Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Fix download status not updated properly after starting batch download (#7561)

Cette révision appartient à :
Ivan Iskandar 2022-07-19 03:22:49 +07:00 révisé par GitHub
Parent b635f02d93
révision 473dc688f0
Aucune clé n'a été trouvée pour cette signature dans la base de données
ID de la clé GPG: 4AEE18F83AFDEB23
2 fichiers modifiés avec 4 ajouts et 4 suppressions

Voir le fichier

@ -417,7 +417,7 @@ class MangaPresenter(
downloadManager.queue.getStatusAsFlow()
.filter { it.manga.id == successState?.manga?.id }
.catch { error -> logcat(LogPriority.ERROR, error) }
.collectLatest {
.collect {
withUIContext {
updateDownloadState(it)
}
@ -429,7 +429,7 @@ class MangaPresenter(
downloadManager.queue.getProgressAsFlow()
.filter { it.manga.id == successState?.manga?.id }
.catch { error -> logcat(LogPriority.ERROR, error) }
.collectLatest {
.collect {
withUIContext {
updateDownloadState(it)
}

Voir le fichier

@ -157,7 +157,7 @@ class UpdatesPresenter(
observeDownloadsStatusJob = presenterScope.launchIO {
downloadManager.queue.getStatusAsFlow()
.catch { error -> logcat(LogPriority.ERROR, error) }
.collectLatest {
.collect {
withUIContext {
updateDownloadState(it)
}
@ -168,7 +168,7 @@ class UpdatesPresenter(
observeDownloadsPageJob = presenterScope.launchIO {
downloadManager.queue.getProgressAsFlow()
.catch { error -> logcat(LogPriority.ERROR, error) }
.collectLatest {
.collect {
withUIContext {
updateDownloadState(it)
}