Made download simple

Bug fixed
This commit is contained in:
tom5079
2019-06-09 15:01:52 +09:00
parent 3fc71b195a
commit 257ad92870
13 changed files with 71 additions and 313 deletions

View File

@@ -38,10 +38,7 @@ class ReaderAdapter(private val images: List<String>) : RecyclerView.Adapter<Rea
options.inJustDecodeBounds = false
val image = when {
BuildConfig.DEBUG -> Bitmap.createScaledBitmap(BitmapFactory.decodeFile(images[position], options), 5, 8, true)
else -> BitmapFactory.decodeFile(images[position], options)
}
val image = BitmapFactory.decodeFile(images[position], options)
post { setImageBitmap(image) }
}