Improve double-tap zoom in reader
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ abstract class BasePageHolder<B : ViewBinding>(
|
||||
}
|
||||
|
||||
protected fun SubsamplingScaleImageView.applyDownsampling(isForeground: Boolean) {
|
||||
downsampling = when {
|
||||
downSampling = when {
|
||||
isForeground || !settings.isReaderOptimizationEnabled -> 1
|
||||
context.isLowRamDevice() -> 8
|
||||
else -> 4
|
||||
|
||||
@@ -97,8 +97,8 @@ class WebtoonImageView @JvmOverloads constructor(
|
||||
setMeasuredDimension(desiredWidth, desiredHeight)
|
||||
}
|
||||
|
||||
override fun onDownsamplingChanged() {
|
||||
super.onDownsamplingChanged()
|
||||
override fun onDownSamplingChanged() {
|
||||
super.onDownSamplingChanged()
|
||||
post {
|
||||
adjustScale()
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:defaultFocusHighlightEnabled="false"
|
||||
android:focusable="true"
|
||||
app:doubleTapZoomStyle="center"
|
||||
app:restoreStrategy="deferred" />
|
||||
|
||||
<TextView
|
||||
|
||||
Reference in New Issue
Block a user