Improve double-tap zoom in reader
This commit is contained in:
@@ -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