From 139e9cfb14dba91b95b5c40bdd5ace0d457d36f7 Mon Sep 17 00:00:00 2001 From: Aleksandr Ivanov Date: Sun, 28 Jan 2024 01:32:15 +0300 Subject: [PATCH] Pebble: fix of app configuration webview --- .../gadgetbridge/activities/ExternalPebbleJSActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ExternalPebbleJSActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ExternalPebbleJSActivity.java index 82060a52e..665eaaab7 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ExternalPebbleJSActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ExternalPebbleJSActivity.java @@ -192,6 +192,9 @@ public class ExternalPebbleJSActivity extends AbstractGBActivity { webSettings.setDomStorageEnabled(true); //needed for localstorage webSettings.setDatabaseEnabled(true); + // #3373 #3424 - Fix configuration for pebble apps + // TODO: this should use a WebViewAssetLoader + webSettings.setAllowFileAccess(true); JSInterface gbJSInterface = new JSInterface(device, uuid); myWebView.addJavascriptInterface(gbJSInterface, "GBjs");