Register TachiyomiImageDecoder after built-in Coil decoders

Not sure if this is related to #5702.

(cherry picked from commit eebfad5a95e8ae88e1ee519c1919d996d924088c)
This commit is contained in:
arkon 2021-08-28 12:29:11 -04:00 committed by Jobobby04
parent b045ee1ba6
commit b916907491

View File

@ -147,12 +147,12 @@ open class App : Application(), LifecycleObserver, ImageLoaderFactory {
override fun newImageLoader(): ImageLoader {
return ImageLoader.Builder(this).apply {
componentRegistry {
add(TachiyomiImageDecoder(this@App.resources))
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
add(ImageDecoderDecoder(this@App))
} else {
add(GifDecoder())
}
add(TachiyomiImageDecoder(this@App.resources))
add(ByteBufferFetcher())
add(MangaCoverFetcher())
}