Skip to content

Route non web links out of the reading view#104

Open
jim-daf wants to merge 1 commit into
maxpower47:masterfrom
jim-daf:route-external-schemes
Open

Route non web links out of the reading view#104
jim-daf wants to merge 1 commit into
maxpower47:masterfrom
jim-daf:route-external-schemes

Conversation

@jim-daf

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

Copy link
Copy Markdown

ViewBookmarkFragment.showInWebView attaches an empty WebViewClient, so links with a scheme other than http or https, for example mailto: or tel:, fail in the reading view instead of opening the matching app.

This adds a shouldOverrideUrlLoading override that keeps http and https pages in the reading view and hands other schemes to the system with Intent.ACTION_VIEW. If nothing can open the link it is ignored instead of crashing. Normal browsing in the reader is unchanged.

Closes #103

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.

Non web links fail in the reading view

1 participant