File tree 2 files changed +2
-2
lines changed
app/src/main/java/com/awxkee/avif/coil
avifcoillibrary/src/main/java/com/github/awxkee/avifcoil/decoder
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class MainActivity : AppCompatActivity() {
22
22
binding.imageView.load(" https://wh.aimuse.online/preset/federico-beccari.avif" ,
23
23
imageLoader = ImageLoader .Builder (this )
24
24
.components {
25
- add(HeifDecoder .Factory ())
25
+ add(HeifDecoder .Factory (this @MainActivity ))
26
26
}
27
27
.bitmapConfig(Bitmap .Config .HARDWARE )
28
28
.build())
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ class HeifDecoder(
112
112
/* *
113
113
* @param context is preferred to be set when displaying an HDR content to apply Vulkan shaders
114
114
*/
115
- class Factory (private val context : Context ? ) : Decoder.Factory {
115
+ class Factory (private val context : Context ? = null ) : Decoder.Factory {
116
116
override fun create (
117
117
result : SourceResult ,
118
118
options : Options ,
You can’t perform that action at this time.
0 commit comments