Skip to content

Guard the link launch in the feature attributes view#669

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

Guard the link launch in the feature attributes view#669
jim-daf wants to merge 1 commit into
nextgis:masterfrom
jim-daf:fix-webview-link-crash

Conversation

@jim-daf
Copy link
Copy Markdown

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

This wraps the link launch in the feature attributes view so the app no longer crashes when there is no app available to open the link.

Right now the tapped URL is passed to startActivity directly, which throws ActivityNotFoundException when there is no handler. With this change the link still opens when a handler exists, and otherwise the exception is caught and a short message is shown.

Closes #668.

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 feature attributes view can crash with ActivityNotFoundException

1 participant