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.
This commit is contained in:
arkon 2021-01-05 22:13:48 -05:00
parent bebb52b4e8
commit 762f5bdc33

View file

@ -73,7 +73,7 @@ android {
isRemoveUnusedCode = false isRemoveUnusedCode = false
isRemoveUnusedResources = true 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") implementation("com.github.bumptech.glide:okhttp3-integration:$glideVersion")
kapt("com.github.bumptech.glide:compiler:$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 // Logging
implementation("com.jakewharton.timber:timber:4.7.1") implementation("com.jakewharton.timber:timber:4.7.1")