1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-03 02:06:21 +02:00

Bangle.js: Inform user if GPS set to off in settings

This commit is contained in:
Martin Boonk 2023-05-18 14:54:34 +02:00 committed by José Rebelo
parent 71d058ec78
commit 88161bed91
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public class GBLocationManager {
} }
public static void start(final Context context, final EventHandler eventHandler, final LocationProviderType providerType, Integer updateInterval) { public static void start(final Context context, final EventHandler eventHandler, final LocationProviderType providerType, Integer updateInterval) {
System.out.println("Starting"); LOG.info("Starting");
if (providers.containsKey(eventHandler) && providers.get(eventHandler).containsKey(providerType)) { if (providers.containsKey(eventHandler) && providers.get(eventHandler).containsKey(providerType)) {
LOG.warn("EventHandler already registered"); LOG.warn("EventHandler already registered");
return; return;

View File

@ -942,7 +942,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
LOG.warn("NETWORK provider could not be started", e); LOG.warn("NETWORK provider could not be started", e);
} }
} else { } else {
LOG.debug("Phone gps data update is deactivated in the settings"); GB.toast("Phone gps data update is deactivated in the settings", Toast.LENGTH_SHORT, GB.INFO);
} }
} }