This commit is contained in:
Victor Shcherb 2018-05-11 00:34:42 +02:00
parent 80b2189450
commit 263c2d62c8
3 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ import android.location.LocationManager;
import android.os.PowerManager.WakeLock;
public class OnNavigationServiceAlarmReceiver extends BroadcastReceiver {
@Override
@Override
public void onReceive(Context context, Intent intent) {
final WakeLock lock = NavigationService.getLock(context);
final NavigationService service = ((OsmandApplication) context.getApplicationContext()).getNavigationService();
@ -38,4 +38,4 @@ public class OnNavigationServiceAlarmReceiver extends BroadcastReceiver {
}
}
}
}

View file

@ -1130,7 +1130,7 @@ public class OsmandSettings {
{
SAVE_TRACK_INTERVAL.setModeDefaultValue(ApplicationMode.CAR, 3000);
SAVE_TRACK_INTERVAL.setModeDefaultValue(ApplicationMode.BICYCLE, 7000);
SAVE_TRACK_INTERVAL.setModeDefaultValue(ApplicationMode.BICYCLE, 5000);
SAVE_TRACK_INTERVAL.setModeDefaultValue(ApplicationMode.PEDESTRIAN, 10000);
}

View file

@ -387,7 +387,7 @@ public class OsmandMonitoringPlugin extends OsmandPlugin {
settings.SAVE_GLOBAL_TRACK_TO_GPX.set(true);
settings.SAVE_GLOBAL_TRACK_REMEMBER.set(choice.value);
int interval = settings.SAVE_GLOBAL_TRACK_INTERVAL.get();
app.startNavigationService(NavigationService.USED_BY_GPX, interval < 30000? 0 : interval);
app.startNavigationService(NavigationService.USED_BY_GPX, interval < 30000 ? 0 : interval);
}
};
if (choice.value || map == null) {