Skip to content

Commit 506bf3b

Browse files
committed
upgrade to 1.5.0
1 parent 4e5a241 commit 506bf3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/com/awxkee/avif/coil/MainActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MainActivity : AppCompatActivity() {
2222
binding.imageView.load("https://wh.aimuse.online/preset/federico-beccari.avif",
2323
imageLoader = ImageLoader.Builder(this)
2424
.components {
25-
add(HeifDecoder.Factory())
25+
add(HeifDecoder.Factory(this@MainActivity))
2626
}
2727
.bitmapConfig(Bitmap.Config.HARDWARE)
2828
.build())

avifcoillibrary/src/main/java/com/github/awxkee/avifcoil/decoder/HeifDecoder.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class HeifDecoder(
112112
/**
113113
* @param context is preferred to be set when displaying an HDR content to apply Vulkan shaders
114114
*/
115-
class Factory(private val context: Context?) : Decoder.Factory {
115+
class Factory(private val context: Context? = null) : Decoder.Factory {
116116
override fun create(
117117
result: SourceResult,
118118
options: Options,

0 commit comments

Comments
 (0)