Skip to content

Guard widget preview against Android 17 crash#2166

Merged
jocmp merged 1 commit into
mainfrom
jc/widget-bug
Jun 19, 2026
Merged

Guard widget preview against Android 17 crash#2166
jocmp merged 1 commit into
mainfrom
jc/widget-bug

Conversation

@jocmp

@jocmp jocmp commented Jun 19, 2026

Copy link
Copy Markdown
Owner

On Android 17 in a work/private profile, Glance's setWidgetPreviews throws IllegalArgumentException because the receiver isn't a registered AppWidget provider, crashing the app on every launch (platform bug).

This wraps the preview calls in a catch so the app launches normally and just skips previews until Google ships a fix.

Ref #2164

@jocmp jocmp merged commit 840c23a into main Jun 19, 2026
2 checks passed
@jocmp jocmp deleted the jc/widget-bug branch June 19, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant