Skip to content

Guard external link launch against missing handler#4

Open
jim-daf wants to merge 1 commit into
javierllorente:masterfrom
jim-daf:guard-external-link
Open

Guard external link launch against missing handler#4
jim-daf wants to merge 1 commit into
javierllorente:masterfrom
jim-daf:guard-external-link

Conversation

@jim-daf
Copy link
Copy Markdown

@jim-daf jim-daf commented Jun 4, 2026

MiniBrowser.shouldOverrideUrlLoading opens external links with startActivity. On a device with no handler this throws ActivityNotFoundException and crashes the app.

This wraps the launch in a try/catch and shows a short toast when nothing can open the link. The in app dictionary view and normal web links are unchanged.

Closes #3

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.

App crashes when an external link has no handler

1 participant