simplify config

This commit is contained in:
slymax committed 2020-04-13 10:00:01 +02:00
1 parent a104b83571
commit 8e7a8d7811
2 files changed
+5 -2

No files matched your search

@@ -10,7 +10,10 @@ class MyWebViewClient extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
String hostname;
// YOUR HOSTNAME
hostname = "example.com";
Uri uri = Uri.parse(url);
if (url.startsWith("file:") || uri.getHost() != null && uri.getHost().endsWith(hostname)) {
return false;