Skip to content

Commit

Permalink
Ignore "intent://" urls on webview (#1193)
Browse files Browse the repository at this point in the history
ignore intent urls
  • Loading branch information
bapeey authored Sep 5, 2024
1 parent 52036e5 commit b56a97b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ fun WebViewScreenContent(
return false
}

// Ignore intents urls
if (it.url.toString().startsWith("intent://")) {
return true
}

// Continue with request, but with custom headers
view?.loadUrl(it.url.toString(), headers)
}
Expand Down

0 comments on commit b56a97b

Please sign in to comment.