Ignore "intent://" urls on webview (mihonapp/mihon#1193)
ignore intent urls (cherry picked from commit b56a97bb8eaf336c75e69e7fb32b87431d991bb3)
This commit is contained in:
parent
a2d8c8f45d
commit
8fa56c5efb
1 changed files with 5 additions and 0 deletions
|
|
@ -104,6 +104,11 @@ fun WebViewScreenContent(
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ignore intents urls
|
||||||
|
if (it.url.toString().startsWith("intent://")) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
// Continue with request, but with custom headers
|
// Continue with request, but with custom headers
|
||||||
view?.loadUrl(it.url.toString(), headers)
|
view?.loadUrl(it.url.toString(), headers)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue