diff --git a/OsmAnd/src/net/osmand/plus/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/OsmandSettings.java index 353271cac3..5aa387d7f6 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/OsmandSettings.java @@ -1303,7 +1303,7 @@ public class OsmandSettings { // SAVE_TRACK_MIN_DISTANCE.setModeDefaultValue(ApplicationMode.BICYCLE, 5.f); // SAVE_TRACK_MIN_DISTANCE.setModeDefaultValue(ApplicationMode.PEDESTRIAN, 5.f); //} - public final CommonPreference SAVE_TRACK_PRECISION = new FloatPreference("save_track_precision", 0.f).makeGlobal(); + public final CommonPreference SAVE_TRACK_PRECISION = new FloatPreference("save_track_precision", 50.0f).makeGlobal(); //{ // SAVE_TRACK_PRECISION.setModeDefaultValue(ApplicationMode.CAR, 50.f); // SAVE_TRACK_PRECISION.setModeDefaultValue(ApplicationMode.BICYCLE, 50.f); diff --git a/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java b/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java index bda45dd53a..a8cce1df62 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java +++ b/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java @@ -407,7 +407,7 @@ public class SavingTrackHelper extends SQLiteOpenHelper { long locationTime = System.currentTimeMillis(); OsmandSettings settings = ctx.getSettings(); boolean record = false; - if(OsmAndLocationProvider.isPointAccurateForRouting(location) && + if(location != null && OsmAndLocationProvider.isNotSimulatedLocation(location) ) { if (OsmandPlugin.getEnabledPlugin(OsmandMonitoringPlugin.class) != null) { if (settings.SAVE_TRACK_TO_GPX.get() diff --git a/OsmAnd/src/net/osmand/plus/monitoring/LiveMonitoringHelper.java b/OsmAnd/src/net/osmand/plus/monitoring/LiveMonitoringHelper.java index ae8f768e8c..c3f9649a28 100644 --- a/OsmAnd/src/net/osmand/plus/monitoring/LiveMonitoringHelper.java +++ b/OsmAnd/src/net/osmand/plus/monitoring/LiveMonitoringHelper.java @@ -47,7 +47,7 @@ public class LiveMonitoringHelper { public void updateLocation(net.osmand.Location location) { boolean record = false; long locationTime = System.currentTimeMillis(); - if (OsmAndLocationProvider.isPointAccurateForRouting(location) && isLiveMonitoringEnabled() + if (location != null && isLiveMonitoringEnabled() && OsmAndLocationProvider.isNotSimulatedLocation(location) && OsmandPlugin.getEnabledPlugin(OsmandMonitoringPlugin.class) != null) { if (locationTime - lastTimeUpdated > settings.LIVE_MONITORING_INTERVAL.get()) {