1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-28 03:25:49 +01:00

Pebble: fix of app configuration webview

This commit is contained in:
Aleksandr Ivanov 2024-01-28 01:32:15 +03:00
parent 4dbe5744da
commit 139e9cfb14

View File

@ -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");