Explorar o código

Better handle webtoon SSIV crop border change

arkon %!s(int64=4) %!d(string=hai) anos
pai
achega
7aa379a857

+ 6 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonPageHolder.kt

@@ -363,7 +363,12 @@ class WebtoonPageHolder(
     private fun initSubsamplingImageView(): SubsamplingScaleImageView {
         val config = viewer.config
 
-        if (subsamplingImageView != null && config.imageCropBorders == cropBorders) {
+        if (subsamplingImageView != null) {
+            if (config.imageCropBorders != cropBorders) {
+                cropBorders = config.imageCropBorders
+                subsamplingImageView!!.setCropBorders(config.imageCropBorders)
+            }
+
             return subsamplingImageView!!
         }