From 3b6c37a30b4ce857051f226353be54139f6be493 Mon Sep 17 00:00:00 2001 From: len Date: Sun, 9 Oct 2016 11:51:07 +0200 Subject: [PATCH] Increase minimum tile dpi --- .../tachiyomi/ui/reader/viewer/pager/PageView.kt | 11 ++++++----- .../ui/reader/viewer/webtoon/WebtoonHolder.kt | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PageView.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PageView.kt index 0d78f3190c..90091e5bdb 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PageView.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PageView.kt @@ -1,6 +1,7 @@ package eu.kanade.tachiyomi.ui.reader.viewer.pager import android.content.Context +import android.graphics.PointF import android.util.AttributeSet import android.view.MotionEvent import android.view.View @@ -59,11 +60,11 @@ class PageView @JvmOverloads constructor(context: Context, attrs: AttributeSet? with(image_view) { setMaxBitmapDimensions((reader.activity as ReaderActivity).maxBitmapSize) - setDoubleTapZoomStyle(com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.ZOOM_FOCUS_FIXED) - setPanLimit(com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.PAN_LIMIT_INSIDE) + setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_FIXED) + setPanLimit(SubsamplingScaleImageView.PAN_LIMIT_INSIDE) setMinimumScaleType(reader.scaleType) setMinimumDpi(100) - setMinimumTileDpi(180) + setMinimumTileDpi(200) setRegionDecoderClass(reader.regionDecoderClass) setBitmapDecoderClass(reader.bitmapDecoderClass) setVerticalScrollingParent(reader is VerticalReader) @@ -71,8 +72,8 @@ class PageView @JvmOverloads constructor(context: Context, attrs: AttributeSet? setOnImageEventListener(object : SubsamplingScaleImageView.DefaultOnImageEventListener() { override fun onReady() { when (reader.zoomType) { - ALIGN_LEFT -> setScaleAndCenter(scale, android.graphics.PointF(0f, 0f)) - ALIGN_RIGHT -> setScaleAndCenter(scale, android.graphics.PointF(sWidth.toFloat(), 0f)) + ALIGN_LEFT -> setScaleAndCenter(scale, PointF(0f, 0f)) + ALIGN_RIGHT -> setScaleAndCenter(scale, PointF(sWidth.toFloat(), 0f)) ALIGN_CENTER -> { val newCenter = center newCenter.y = 0f diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonHolder.kt index dd4e3d9362..d94f24e269 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonHolder.kt @@ -50,7 +50,7 @@ class WebtoonHolder(private val view: View, private val adapter: WebtoonAdapter) setPanLimit(SubsamplingScaleImageView.PAN_LIMIT_INSIDE) setMinimumScaleType(SubsamplingScaleImageView.SCALE_TYPE_FIT_WIDTH) setMinimumDpi(100) - setMinimumTileDpi(180) + setMinimumTileDpi(200) setRegionDecoderClass(webtoonReader.regionDecoderClass) setBitmapDecoderClass(webtoonReader.bitmapDecoderClass) setVerticalScrollingParent(true)