Use custom decoder factory instead
`ImageDecoderDecoder.Factory` is only applicable for animated images.
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user