Ignore "intent://" urls on webview (#1193)

ignore intent urls

(cherry picked from commit b56a97bb8eaf336c75e69e7fb32b87431d991bb3)
This commit is contained in:
bapeey 2024-09-05 05:11:09 -05:00 committed by Jobobby04
parent 6bb2bc03f3
commit 3cac63ed91

View File

@ -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)
}