From 762f5bdc339ec04196c6694db1b4da902256abb1 Mon Sep 17 00:00:00 2001 From: arkon Date: Tue, 5 Jan 2021 22:13:48 -0500 Subject: [PATCH] Switch to version of SubsamplingScaleImageView with new image decoder Courtesy of @inorichi. Branch: https://github.com/tachiyomiorg/subsampling-scale-image-view/commits/tachiyomi-new-decoder Decoding speed will be a bit slower now due to two passes if crop borders is enabled, but should be more reliable on colored images and work for black borders. Memory usage (re: leaks) should also be better. --- app/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 7b45e1a0e5..6c57e98d67 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -73,7 +73,7 @@ android { isRemoveUnusedCode = false isRemoveUnusedResources = true } - setProguardFiles(listOf("proguard-rules.pro")) + setProguardFiles(listOf(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")) }*/ } } @@ -211,7 +211,7 @@ dependencies { implementation("com.github.bumptech.glide:okhttp3-integration:$glideVersion") kapt("com.github.bumptech.glide:compiler:$glideVersion") - implementation("com.github.tachiyomiorg:subsampling-scale-image-view:6caf219") + implementation("com.github.tachiyomiorg:subsampling-scale-image-view:ea1e51b") // Logging implementation("com.jakewharton.timber:timber:4.7.1")