mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 20:31:02 -05:00
Use Rapid only for regions. Fixes #97 (probably)
This commit is contained in:
parent
ad953b7bf6
commit
c4ae88a8ff
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue