|
@@ -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([email protected]))
|
|
|
|
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([email protected]))
|
|
add(ByteBufferFetcher())
|
|
add(ByteBufferFetcher())
|
|
add(MangaCoverFetcher())
|
|
add(MangaCoverFetcher())
|
|
}
|
|
}
|