Skip to content

Guard the About screen against a crash when no app can open a link#132

Open
jim-daf wants to merge 1 commit into
iTXTech:masterfrom
jim-daf:guard-about-link-crash
Open

Guard the About screen against a crash when no app can open a link#132
jim-daf wants to merge 1 commit into
iTXTech:masterfrom
jim-daf:guard-about-link-crash

Conversation

@jim-daf

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

Copy link
Copy Markdown

Tapping a link in the About WebView can crash the screen. shouldOverrideUrlLoading forwards every URL to startActivity(ACTION_VIEW, ...), and when no installed app can handle the scheme that call throws ActivityNotFoundException.

This wraps the launch in a try/catch. When nothing can open the link the user gets a short toast instead of a crash, and normal links keep working as before.

Closes #131

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.

About screen can crash when a link has no handler app

1 participant