diff --git a/app/build.gradle b/app/build.gradle index 352969657..4af28c2dd 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -93,7 +93,7 @@ android { dependencies { // Modified dependencies - compile 'com.github.inorichi:subsampling-scale-image-view:a2a14ef' + compile 'com.github.inorichi:subsampling-scale-image-view:96d2c7f' compile 'com.github.inorichi:ReactiveNetwork:69092ed' // Android support library @@ -108,7 +108,7 @@ dependencies { compile 'com.android.support:multidex:1.0.1' - compile 'com.google.android.gms:play-services-gcm:9.6.1' + compile 'com.google.android.gms:play-services-gcm:9.8.0' // ReactiveX compile 'io.reactivex:rxandroid:1.2.1' 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 411c49519..7ec34b406 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 @@ -24,6 +24,11 @@ abstract class BaseReader : BaseFragment() { * Skia decoder. */ const val SKIA_DECODER = 1 + + /** + * Image decoder. + */ + const val IMAGE_DECODER = 2 } /** @@ -201,12 +206,16 @@ abstract class BaseReader : BaseFragment() { fun setDecoderClass(value: Int) { when (value) { RAPID_DECODER -> { - regionDecoderClass = RapidImageRegionDecoder::class.java bitmapDecoderClass = RapidImageDecoder::class.java + regionDecoderClass = RapidImageRegionDecoder::class.java } SKIA_DECODER -> { - regionDecoderClass = SkiaImageRegionDecoder::class.java bitmapDecoderClass = SkiaImageDecoder::class.java + regionDecoderClass = SkiaImageRegionDecoder::class.java + } + IMAGE_DECODER -> { + bitmapDecoderClass = IImageDecoder::class.java + regionDecoderClass = IImageRegionDecoder::class.java } } } diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 553e0a232..171fa2785 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -114,8 +114,6 @@ Vertical Webtoon Decodificador de imagen - Rapid - Skia Tipo de escalado Ajustar a la pantalla Estirado diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml index e4eee38cf..f0f8973eb 100644 --- a/app/src/main/res/values-pt/strings.xml +++ b/app/src/main/res/values-pt/strings.xml @@ -119,8 +119,6 @@ Vertical Webtoon Descodificador de imagem - Rapid - Skia Tipo de escala Ajustar ao ecrã Esticar diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 1b61924f6..100ebec7f 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -67,13 +67,15 @@ - @string/rapid_decoder - @string/skia_decoder + Rapid + Skia + Image 0 1 + 2 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 91b4af091..89900da3c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -123,8 +123,6 @@ Vertical Webtoon Image decoder - Rapid - Skia Scale type Fit screen Stretch