Rebuilding Downloader

This commit is contained in:
Pupil
2020-01-28 10:48:31 +09:00
parent d73dc19d3d
commit 10712e6e62
5 changed files with 103 additions and 64 deletions

View File

@@ -19,6 +19,7 @@
package xyz.quaver.pupil.adapters
import android.graphics.drawable.Drawable
import android.util.Log
import android.util.SparseBooleanArray
import android.view.LayoutInflater
import android.view.View
@@ -129,6 +130,8 @@ class GalleryBlockAdapter(private val glide: RequestManager, private val galleri
with(view.galleryblock_progressbar) {
progress = imageCache.invoke().list()?.size ?: 0
Log.i("PUPILD", progress.toString())
if (!readerCache.invoke().exists()) {
visibility = View.GONE
max = 0