Better handle webtoon SSIV crop border change

This commit is contained in:
arkon 2021-03-31 22:20:17 -04:00
parent 443024cebb
commit 7aa379a857

View file

@ -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!!
}