Context sheet crash on large cover artwork
Description
FATAL EXCEPTION: main
Process: org.videolan.vlc.debug, PID: 10147
java.lang.RuntimeException: Canvas: trying to draw too large(132480100bytes) bitmap.
at android.graphics.RecordingCanvas.throwIfCannotDraw(RecordingCanvas.java:280)
at android.graphics.BaseRecordingCanvas.drawBitmap(BaseRecordingCanvas.java:88)
at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:548)
at android.widget.ImageView.onDraw(ImageView.java:1436)
Expected behavior
Application should use the built-in image loading and caching routines to resample cover artwork into a smaller bitmap
Actual behavior
Currently binding.ctxCover.setImageURI(artwork.toUri())
is called which attempts to directly load the full size image.
Steps to reproduce
- Add an audio file with large artwork
- Load the context sheet "..." in the audio browser
Context
App version
3.5.4
Android version
Android 11
Device model
Pixel 3
App mode
Smartphone