mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Webview: Firewall is not used when direct internet access is available
This commit is contained in:
@@ -205,7 +205,7 @@ public class GBWebClient extends WebViewClient {
|
||||
Uri parsedUri = Uri.parse(url);
|
||||
|
||||
if (parsedUri.getScheme().startsWith("http")) {
|
||||
if (GBApplication.hasInternetAccess() && firewall.isAllowed(parsedUri)) {
|
||||
if (GBApplication.hasDirectInternetAccess() || (GBApplication.hasInternetAccess() && firewall.isAllowed(parsedUri))) {
|
||||
view.loadUrl(url);
|
||||
} else {
|
||||
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
|
||||
|
||||
Reference in New Issue
Block a user