diff --git a/app/build.gradle b/app/build.gradle index 337f531e0..a6ab2bfe0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -136,7 +136,7 @@ dependencies { implementation 'io.coil-kt:coil-base:2.6.0' implementation 'io.coil-kt:coil-svg:2.6.0' - implementation 'com.github.KotatsuApp:subsampling-scale-image-view:02e6d6cfe9' + implementation 'com.github.KotatsuApp:subsampling-scale-image-view:8cafac256e' implementation 'com.github.solkin:disk-lru-cache:1.4' implementation 'io.noties.markwon:core:4.6.2' diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/pager/BasePageHolder.kt b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/pager/BasePageHolder.kt index 2c4827207..001cfdf0d 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/pager/BasePageHolder.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/pager/BasePageHolder.kt @@ -71,7 +71,7 @@ abstract class BasePageHolder( } protected fun SubsamplingScaleImageView.applyDownsampling(isForeground: Boolean) { - downsampling = when { + downSampling = when { isForeground || !settings.isReaderOptimizationEnabled -> 1 context.isLowRamDevice() -> 8 else -> 4 diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/pager/webtoon/WebtoonImageView.kt b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/pager/webtoon/WebtoonImageView.kt index e4f9a90f9..8e1c75ec5 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/pager/webtoon/WebtoonImageView.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/pager/webtoon/WebtoonImageView.kt @@ -97,8 +97,8 @@ class WebtoonImageView @JvmOverloads constructor( setMeasuredDimension(desiredWidth, desiredHeight) } - override fun onDownsamplingChanged() { - super.onDownsamplingChanged() + override fun onDownSamplingChanged() { + super.onDownSamplingChanged() post { adjustScale() } diff --git a/app/src/main/res/layout/item_page.xml b/app/src/main/res/layout/item_page.xml index 3909ca1bb..c15be12c9 100644 --- a/app/src/main/res/layout/item_page.xml +++ b/app/src/main/res/layout/item_page.xml @@ -12,6 +12,7 @@ android:layout_height="match_parent" android:defaultFocusHighlightEnabled="false" android:focusable="true" + app:doubleTapZoomStyle="center" app:restoreStrategy="deferred" />