Use Rapid only for regions. Fixes #97 (probably)

This commit is contained in:
inorichi 2016-01-31 22:41:45 +01:00
parent ad953b7bf6
commit c4ae88a8ff

View File

@ -4,7 +4,6 @@ import android.view.MotionEvent;
import com.davemorrissey.labs.subscaleview.decoder.ImageDecoder; import com.davemorrissey.labs.subscaleview.decoder.ImageDecoder;
import com.davemorrissey.labs.subscaleview.decoder.ImageRegionDecoder; import com.davemorrissey.labs.subscaleview.decoder.ImageRegionDecoder;
import com.davemorrissey.labs.subscaleview.decoder.RapidImageDecoder;
import com.davemorrissey.labs.subscaleview.decoder.RapidImageRegionDecoder; import com.davemorrissey.labs.subscaleview.decoder.RapidImageRegionDecoder;
import com.davemorrissey.labs.subscaleview.decoder.SkiaImageDecoder; import com.davemorrissey.labs.subscaleview.decoder.SkiaImageDecoder;
import com.davemorrissey.labs.subscaleview.decoder.SkiaImageRegionDecoder; import com.davemorrissey.labs.subscaleview.decoder.SkiaImageRegionDecoder;
@ -59,7 +58,10 @@ public abstract class BaseReader extends BaseFragment {
case RAPID_DECODER: case RAPID_DECODER:
default: default:
regionDecoderClass = RapidImageRegionDecoder.class; regionDecoderClass = RapidImageRegionDecoder.class;
bitmapDecoderClass = RapidImageDecoder.class; bitmapDecoderClass = SkiaImageDecoder.class;
// Using Skia because Rapid isn't stable. Rapid is still used for region decoding.
// https://github.com/inorichi/tachiyomi/issues/97
//bitmapDecoderClass = RapidImageDecoder.class;
break; break;
case SKIA_DECODER: case SKIA_DECODER:
regionDecoderClass = SkiaImageRegionDecoder.class; regionDecoderClass = SkiaImageRegionDecoder.class;