mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-11 17:41:57 +01:00
Merge branch 'master' into background-javascript
# Conflicts: # app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ExternalPebbleJSActivity.java
This commit is contained in:
commit
6c993d40aa
@ -1,3 +1,9 @@
|
|||||||
|
navigator.geolocation.getCurrentPosition = function(success, failure) { //override because default implementation requires GPS permission
|
||||||
|
success(JSON.parse(GBjs.getCurrentPosition()));
|
||||||
|
failure({ code: 2, message: "POSITION_UNAVAILABLE"});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (window.Storage){
|
if (window.Storage){
|
||||||
var prefix = GBjs.getAppLocalstoragePrefix();
|
var prefix = GBjs.getAppLocalstoragePrefix();
|
||||||
GBjs.gbLog("redefining local storage with prefix: " + prefix);
|
GBjs.gbLog("redefining local storage with prefix: " + prefix);
|
||||||
|
@ -24,6 +24,8 @@ import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.model.DeviceService;
|
import nodomain.freeyourgadget.gadgetbridge.model.DeviceService;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.util.GB;
|
import nodomain.freeyourgadget.gadgetbridge.util.GB;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.util.WebViewSingleton;
|
import nodomain.freeyourgadget.gadgetbridge.util.WebViewSingleton;
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.util.PebbleUtils;
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.util.Prefs;
|
||||||
|
|
||||||
public class ExternalPebbleJSActivity extends GBActivity {
|
public class ExternalPebbleJSActivity extends GBActivity {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user