Open bmc08gt opened 1 year ago
Is this happening after certain steps or can you always reproduce it in the same device?
The only issue I could see here is with activity recreation.
Seem to be able to always recreate this on my Pixel 3 XL. Default launcher with no Intent modification.
Ohhh... I just remember there was an issue in certain Android version that modified the intent and that's why we changed our guidance to always include the widget ID again when setting the result
val resultValue = Intent().putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId)
setResult(Activity.RESULT_CANCELED, resultValue)
https://developer.android.com/develop/ui/views/appwidgets/configuration#update
Allow the appWidgetId to be relayed to the launcher if it is not provided in the configuration activity intent.
This prevents the following error when applyConfiguration is called on at least the Pixel 3 XL running Android 12.