enhance: Disable inset cutout workaround

Not entirely sure what's this workaround made for tbh
This commit is contained in:
ziro 2024-02-04 18:16:25 +07:00
parent 4b13a6580a
commit 7daf8fefc7
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -180,6 +180,7 @@ open class ReaderPageImageView @JvmOverloads constructor(
setMinimumScaleType(config.minimumScaleType) setMinimumScaleType(config.minimumScaleType)
setMinimumDpi(1) // Just so that very small image will be fit for initial load setMinimumDpi(1) // Just so that very small image will be fit for initial load
setCropBorders(config.cropBorders) setCropBorders(config.cropBorders)
/*
if (config.insetInfo != null) { if (config.insetInfo != null) {
val topInsets = config.insetInfo.topCutoutInset val topInsets = config.insetInfo.topCutoutInset
val bottomInsets = config.insetInfo.bottomCutoutInset val bottomInsets = config.insetInfo.bottomCutoutInset
@ -200,6 +201,7 @@ open class ReaderPageImageView @JvmOverloads constructor(
) )
} }
} }
*/
setOnImageEventListener( setOnImageEventListener(
object : SubsamplingScaleImageView.DefaultOnImageEventListener() { object : SubsamplingScaleImageView.DefaultOnImageEventListener() {
override fun onReady() { override fun onReady() {