I'm trying to create an Appwidget, using Glance Jetpack with .SVG image support.
I'm able to download the bitmap using
ImageRequest.Builder(this)
.data(url)
.decoderFactory(SvgDecoder.Factory())
...and as seen in the last line of logging, there's a non-null bitmap assigned to var coinImage
.
The problem is, the widget doesn't seem to re-compose after the bitmap's value changes. I'm stuck seeing the circularProgressSpinner.
What am I missing/doing wrong? Am I missing something foundational with the composition's state?
My code and logcat is at: https://gist.github.com/Alvtag/5bd46a2007e6c4f382d431e43aa96e80
Any help is appreciated!