Skip to content

Conversation

@amaanq
Copy link

@amaanq amaanq commented Nov 27, 2025

Solution

The reason this happens is because LinkAnnotation.Url automatically handles clicks

Problem

In the Info app, clicking on a crypto address does not do anything if an app that can handle the link is not installed. Ideally, an error message or toast should be shown to the user.

Solution

The reason this happens is because LinkAnnotation.Url without a linkInteractionListener uses the default UriHandler, which silently fails when no app can handle the URI. I've added a custom linkInteractionListener that handles IllegalArgumentExceptions and shows a snackbar error. This also replaces the deprecated ClickableText with the modern withLink API.

Additionally, the error message grammar was improved from "Couldn't find an app to open donation address with!" to "No wallet app installed to open this address". This could be further improved if desired :)

Screenshot that shows the snackbar error when no app that can handle the link is installed image

LinkAnnotation.Url was silently intercepting clicks and failing when no
wallet app was installed. Remove it so our custom handler runs and can
show an error message.
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.

1 participant