Skip to content

Avoid crash when no app can open an external link#576

Open
jim-daf wants to merge 1 commit into
cyclestreets:masterfrom
jim-daf:fix-external-link-crash
Open

Avoid crash when no app can open an external link#576
jim-daf wants to merge 1 commit into
cyclestreets:masterfrom
jim-daf:fix-external-link-crash

Conversation

@jim-daf
Copy link
Copy Markdown

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

WebPageFragment.FragmentViewClient.shouldOverrideUrlLoading opens external links with startActivity. On a device with no app for the link this throws ActivityNotFoundException and crashes the app.

This wraps the launch in a try/catch and shows a short message when nothing can open the link. The home page still loads in the WebView, and other links still open in their app when one is available.

Closes #575

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.

Crash when an external link cannot be opened by any app

1 participant