From b6011d4cf580ab9756562227db5a7ff9c9c1cd21 Mon Sep 17 00:00:00 2001 From: len Date: Sun, 16 Oct 2016 20:50:32 +0200 Subject: [PATCH] Minor changes --- .../kanade/tachiyomi/data/source/online/english/Mangafox.kt | 3 +-- .../eu/kanade/tachiyomi/ui/reader/viewer/pager/PageView.kt | 4 ++-- .../tachiyomi/ui/reader/viewer/webtoon/WebtoonHolder.kt | 4 ++-- build.gradle | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/source/online/english/Mangafox.kt b/app/src/main/java/eu/kanade/tachiyomi/data/source/online/english/Mangafox.kt index 4ec7c632b..5baa43f22 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/source/online/english/Mangafox.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/source/online/english/Mangafox.kt @@ -1,6 +1,5 @@ package eu.kanade.tachiyomi.data.source.online.english -import android.content.Context import eu.kanade.tachiyomi.data.database.models.Chapter import eu.kanade.tachiyomi.data.database.models.Manga import eu.kanade.tachiyomi.data.source.EN @@ -120,7 +119,7 @@ class Mangafox(override val id: Int) : ParsedOnlineSource() { val document = response.asJsoup() val url = response.request().url().toString().substringBeforeLast('/') - document.select("select.m").first().select("option:not([value=0])").forEach { + document.select("select.m").first()?.select("option:not([value=0])")?.forEach { pages.add(Page(pages.size, "$url/${it.attr("value")}.html")) } } 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 90091e5bd..c3d9bd7c7 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 @@ -63,8 +63,8 @@ class PageView @JvmOverloads constructor(context: Context, attrs: AttributeSet? setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_FIXED) setPanLimit(SubsamplingScaleImageView.PAN_LIMIT_INSIDE) setMinimumScaleType(reader.scaleType) - setMinimumDpi(100) - setMinimumTileDpi(200) + setMinimumDpi(90) + setMinimumTileDpi(180) setRegionDecoderClass(reader.regionDecoderClass) setBitmapDecoderClass(reader.bitmapDecoderClass) setVerticalScrollingParent(reader is VerticalReader) 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 d94f24e26..6e558a4df 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 @@ -49,8 +49,8 @@ class WebtoonHolder(private val view: View, private val adapter: WebtoonAdapter) setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_FIXED) setPanLimit(SubsamplingScaleImageView.PAN_LIMIT_INSIDE) setMinimumScaleType(SubsamplingScaleImageView.SCALE_TYPE_FIT_WIDTH) - setMinimumDpi(100) - setMinimumTileDpi(200) + setMinimumDpi(90) + setMinimumTileDpi(180) setRegionDecoderClass(webtoonReader.regionDecoderClass) setBitmapDecoderClass(webtoonReader.bitmapDecoderClass) setVerticalScrollingParent(true) diff --git a/build.gradle b/build.gradle index dd9956688..8cdddff21 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.2.0' + classpath 'com.android.tools.build:gradle:2.2.1' classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files