Better handle webtoon SSIV crop border change
(cherry picked from commit 7aa379a857c5834996565959905fa0d50c7ca7eb) # Conflicts: # app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonPageHolder.kt
This commit is contained in:
parent
eb9de3e6f1
commit
e38a0d47ac
@ -363,10 +363,15 @@ class WebtoonPageHolder(
|
||||
private fun initSubsamplingImageView(): SubsamplingScaleImageView {
|
||||
val config = viewer.config
|
||||
|
||||
// SY -->
|
||||
val imageCropBorders = if (!viewer.isContinuous) config.continuousCropBorders else config.imageCropBorders
|
||||
// SY <--
|
||||
if (subsamplingImageView != null && /* SY --> */ imageCropBorders /* SY <-- */ == cropBorders) {
|
||||
if (subsamplingImageView != null) {
|
||||
// SY -->
|
||||
val imageCropBorders = if (!viewer.isContinuous) config.continuousCropBorders else config.imageCropBorders
|
||||
if (imageCropBorders != cropBorders) {
|
||||
cropBorders = imageCropBorders
|
||||
subsamplingImageView!!.setCropBorders(imageCropBorders)
|
||||
}
|
||||
// SY <--
|
||||
|
||||
return subsamplingImageView!!
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user