Fix recording only for navigation
This commit is contained in:
parent
15a7221d57
commit
a9d0afcb92
1 changed files with 2 additions and 1 deletions
|
@ -319,7 +319,8 @@ public class SavingTrackHelper extends SQLiteOpenHelper {
|
||||||
OsmAndLocationProvider.isNotSimulatedLocation(location) &&
|
OsmAndLocationProvider.isNotSimulatedLocation(location) &&
|
||||||
OsmandPlugin.getEnabledPlugin(OsmandMonitoringPlugin.class) != null) {
|
OsmandPlugin.getEnabledPlugin(OsmandMonitoringPlugin.class) != null) {
|
||||||
if (settings.SAVE_TRACK_TO_GPX.get() &&
|
if (settings.SAVE_TRACK_TO_GPX.get() &&
|
||||||
locationTime - lastTimeUpdated > settings.SAVE_TRACK_INTERVAL.get()) {
|
locationTime - lastTimeUpdated > settings.SAVE_TRACK_INTERVAL.get() &&
|
||||||
|
ctx.getRoutingHelper().isFollowingMode()) {
|
||||||
record = true;
|
record = true;
|
||||||
} else if (settings.SAVE_GLOBAL_TRACK_TO_GPX.get() &&
|
} else if (settings.SAVE_GLOBAL_TRACK_TO_GPX.get() &&
|
||||||
locationTime - lastTimeUpdated > settings.SAVE_GLOBAL_TRACK_INTERVAL.get()) {
|
locationTime - lastTimeUpdated > settings.SAVE_GLOBAL_TRACK_INTERVAL.get()) {
|
||||||
|
|
Loading…
Reference in a new issue