This commit is contained in:
Koitharu
2022-09-11 09:07:25 +03:00
parent 2e561697ac
commit ab9bdf9f07
9 changed files with 32 additions and 23 deletions

View File

@@ -150,7 +150,7 @@ class DownloadManager(
}
outState.value = DownloadState.PostProcessing(startId, data, cover)
output.mergeWithExisting()
output.finalize()
output.finish()
val localManga = localMangaRepository.getFromFile(output.file)
outState.value = DownloadState.Done(startId, data, cover, localManga)
} catch (e: CancellationException) {