Replace RxJava in DownloadQueueScreenModel (#8872)

This commit is contained in:
Two-Ai
2023-01-09 23:08:04 -05:00
committed by GitHub
parent 46774771ec
commit 2245658363
2 changed files with 32 additions and 35 deletions

View File

@@ -18,9 +18,8 @@ data class Download(
var pages: List<Page>? = null,
) {
@Volatile
@Transient
var totalProgress: Int = 0
val totalProgress: Int
get() = pages?.sumOf(Page::progress) ?: 0
@Volatile
@Transient