in an android app we have a couple of app widgets, implemented using Jetpack Glance.
whenever there is a code change - like a really simple change - upon running the app, the widget just shows a waiting wheel. in order to see the change, i need to remove the widget and add it again.
i tried with a simple widget:
class MyWidget : GlanceAppWidget(), KoinComponent {
override suspend fun provideGlance(context: Context, id: GlanceId) {
provideContent {
Text("Hello World")
}
}
}
changing the text to "Hello World 123" would generate the problem. this costs a lot of time for simple changes. i do not want to use preview since i am testing and making last changes on the device.
thanks.
added: android:initialLayout is shown, upon rerunning the app.