mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Fix download status not updated properly after starting batch download (#7561)
This commit is contained in:
		| @@ -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) | ||||
|                     } | ||||
|   | ||||
| @@ -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) | ||||
|                     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user