File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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())
Original file line number Diff line number Diff 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 ,
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments