Skip to content

Avoid a crash when an external link in the manual has no handler#99

Open
jim-daf wants to merge 1 commit into
demantz:masterfrom
jim-daf:fix-webview-link-crash
Open

Avoid a crash when an external link in the manual has no handler#99
jim-daf wants to merge 1 commit into
demantz:masterfrom
jim-daf:fix-webview-link-crash

Conversation

@jim-daf

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

Copy link
Copy Markdown

This wraps the external link launch in the manual screen so the app no longer goes down when there is no app available to open the link.

Right now any non file URL is passed to startActivity directly. On a device with no browser or no handler for the intent that throws ActivityNotFoundException and takes the screen with it. With this change the link still opens normally when a handler exists, and otherwise the exception is caught and a short message is shown.

Closes #98.

@tetanakrikun2-lang tetanakrikun2-lang left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zz

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.

External links in the manual screen can crash with ActivityNotFoundException

2 participants