Update DownloadViewModel.kt

This commit is contained in:
LagradOst 2021-11-04 11:23:02 +01:00 committed by GitHub
parent 3f1f5894d0
commit 650522993c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,8 +57,6 @@ class DownloadViewModel : ViewModel() {
for (c in children) { for (c in children) {
val childFile = VideoDownloadManager.getDownloadFileInfoAndUpdateSettings(context, c.id) ?: continue val childFile = VideoDownloadManager.getDownloadFileInfoAndUpdateSettings(context, c.id) ?: continue
println("FFFFFFFFFFFFFFFFFFF $childFile")
if (childFile.fileLength <= 1) continue if (childFile.fileLength <= 1) continue
val len = childFile.totalBytes val len = childFile.totalBytes
val flen = childFile.fileLength val flen = childFile.fileLength
@ -113,6 +111,6 @@ class DownloadViewModel : ViewModel() {
_availableBytes.postValue(localBytesAvailable) _availableBytes.postValue(localBytesAvailable)
_downloadBytes.postValue(localDownloadedBytes) _downloadBytes.postValue(localDownloadedBytes)
_headerCards.postValue(visual.also { println("VISUAL $it") }) _headerCards.postValue(visual)
} }
} }