mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-30 07:31:01 +00:00
fix: offline mode failing
This commit is contained in:
@@ -1350,7 +1350,11 @@ fun blurImage(imageView: ImageView, banner: String?) {
|
||||
if (!(context as Activity).isDestroyed) {
|
||||
val url = PrefManager.getVal<String>(PrefName.ImageUrl).ifEmpty { banner }
|
||||
Glide.with(context as Context)
|
||||
.load(GlideUrl(url))
|
||||
.load(
|
||||
if (banner.startsWith("http")) GlideUrl(url) else if (banner.startsWith("content://")) Uri.parse(
|
||||
url
|
||||
) else File(url)
|
||||
)
|
||||
.diskCacheStrategy(DiskCacheStrategy.RESOURCE).override(400)
|
||||
.apply(RequestOptions.bitmapTransform(BlurTransformation(radius, sampling)))
|
||||
.into(imageView)
|
||||
|
||||
Reference in New Issue
Block a user