From 7aa379a857c5834996565959905fa0d50c7ca7eb Mon Sep 17 00:00:00 2001 From: arkon Date: Wed, 31 Mar 2021 22:20:17 -0400 Subject: [PATCH] Better handle webtoon SSIV crop border change --- .../ui/reader/viewer/webtoon/WebtoonPageHolder.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonPageHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonPageHolder.kt index 7a64b5aef..a66c0bba4 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonPageHolder.kt +++ b/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!! }