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

Bangle.js: Match default interval from resource file

This commit is contained in:
Martin Boonk 2023-05-18 23:11:38 +02:00 committed by José Rebelo
parent 88161bed91
commit fd9efdcb72

View File

@ -927,7 +927,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
} }
Prefs devicePrefs = new Prefs(GBApplication.getDeviceSpecificSharedPrefs(getDevice().getAddress())); Prefs devicePrefs = new Prefs(GBApplication.getDeviceSpecificSharedPrefs(getDevice().getAddress()));
if(devicePrefs.getBoolean(PREF_DEVICE_GPS_UPDATE, false)) { if(devicePrefs.getBoolean(PREF_DEVICE_GPS_UPDATE, false)) {
int intervalLength = devicePrefs.getInt(PREF_DEVICE_GPS_UPDATE_INTERVAL, 10000); int intervalLength = devicePrefs.getInt(PREF_DEVICE_GPS_UPDATE_INTERVAL, 1000);
LOG.info("Setup location listener with an update interval of " + intervalLength + " ms"); LOG.info("Setup location listener with an update interval of " + intervalLength + " ms");
try { try {