From f7b94179a452cb38b67eef7343724b7cd5848da8 Mon Sep 17 00:00:00 2001 From: len Date: Thu, 19 Jan 2017 21:12:49 +0100 Subject: [PATCH] Update subsampling with some fixes --- app/build.gradle | 2 +- .../ui/reader/viewer/base/BaseReader.kt | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index aefd6e498f..b19e2dceb2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -98,7 +98,7 @@ android { dependencies { // Modified dependencies - compile 'com.github.inorichi:subsampling-scale-image-view:e8b72cb' + compile 'com.github.inorichi:subsampling-scale-image-view:de3b472' // Android support library final support_library_version = '25.1.0' diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/base/BaseReader.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/base/BaseReader.kt index 46903d038b..946a26e5f1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/base/BaseReader.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/base/BaseReader.kt @@ -20,15 +20,15 @@ abstract class BaseReader : BaseFragment() { */ const val IMAGE_DECODER = 0 - /** - * Skia decoder. - */ - const val SKIA_DECODER = 1 - /** * Rapid decoder. */ - const val RAPID_DECODER = 2 + const val RAPID_DECODER = 1 + + /** + * Skia decoder. + */ + const val SKIA_DECODER = 2 } /** @@ -233,14 +233,14 @@ abstract class BaseReader : BaseFragment() { bitmapDecoderClass = IImageDecoder::class.java regionDecoderClass = IImageRegionDecoder::class.java } - SKIA_DECODER -> { - bitmapDecoderClass = SkiaImageDecoder::class.java - regionDecoderClass = SkiaImageRegionDecoder::class.java - } RAPID_DECODER -> { bitmapDecoderClass = RapidImageDecoder::class.java regionDecoderClass = RapidImageRegionDecoder::class.java } + SKIA_DECODER -> { + bitmapDecoderClass = SkiaImageDecoder::class.java + regionDecoderClass = SkiaImageRegionDecoder::class.java + } } }