Bläddra i källkod

Update subsampling with some fixes

len 8 år sedan
förälder
incheckning
f7b94179a4

+ 1 - 1
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'

+ 8 - 8
app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/base/BaseReader.kt

@@ -21,14 +21,14 @@ abstract class BaseReader : BaseFragment() {
         const val IMAGE_DECODER = 0
 
         /**
-         * Skia decoder.
+         * Rapid decoder.
          */
-        const val SKIA_DECODER = 1
+        const val RAPID_DECODER = 1
 
         /**
-         * Rapid decoder.
+         * Skia decoder.
          */
-        const val RAPID_DECODER = 2
+        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
+            }
         }
     }