Use custom decoder factory instead

`ImageDecoderDecoder.Factory` is only applicable for animated images.
This commit is contained in:
FooIbar committed 2023-10-14 19:59:17 +08:00
1 parent 83cd9bdd00
commit 69f744131a
1 file changed
+1 -1
@@ -149,7 +149,7 @@ class EhApplication : Application(), ImageLoaderFactory {
callFactory(baseOkHttpClient)
}
if (isAtLeastP) {
add(ImageDecoderDecoder.Factory(false))
add { result, options, _ -> ImageDecoderDecoder(result.source, options, false) }
}
add(MergeInterceptor)
}