mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 22:53:07 -05:00
Register TachiyomiImageDecoder after built-in Coil decoders
Not sure if this is related to #5702.
This commit is contained in:
parent
77c0a93ac6
commit
eebfad5a95
1 changed files with 1 additions and 1 deletions
|
@ -116,12 +116,12 @@ open class App : Application(), LifecycleObserver, ImageLoaderFactory {
|
||||||
override fun newImageLoader(): ImageLoader {
|
override fun newImageLoader(): ImageLoader {
|
||||||
return ImageLoader.Builder(this).apply {
|
return ImageLoader.Builder(this).apply {
|
||||||
componentRegistry {
|
componentRegistry {
|
||||||
add(TachiyomiImageDecoder(this@App.resources))
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||||
add(ImageDecoderDecoder(this@App))
|
add(ImageDecoderDecoder(this@App))
|
||||||
} else {
|
} else {
|
||||||
add(GifDecoder())
|
add(GifDecoder())
|
||||||
}
|
}
|
||||||
|
add(TachiyomiImageDecoder(this@App.resources))
|
||||||
add(ByteBufferFetcher())
|
add(ByteBufferFetcher())
|
||||||
add(MangaCoverFetcher())
|
add(MangaCoverFetcher())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue