1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-25 03:16:51 +01:00

Blind attempt to fix crashing configuration page if bgJS is disabled

This might help #643 but I could not reproduce the reported issue
This commit is contained in:
Daniele Gobbetti 2018-02-23 18:56:05 +01:00
parent bd6cfe6000
commit daabff1364

View File

@ -85,7 +85,7 @@ public class GBWebClient extends WebViewClient {
private WebResourceResponse mimicReply(Uri requestedUri) {
if (requestedUri.getHost() != null && (StringUtils.indexOfAny(requestedUri.getHost(), AllowedDomains) != -1)) {
if (internetHelperBound) {
if (GBApplication.getGBPrefs().isBackgroundJsEnabled() && internetHelperBound) {
LOG.debug("WEBVIEW forwarding request to the internet helper");
Bundle bundle = new Bundle();
bundle.putString("URL", requestedUri.toString());