Fix recording only for navigation

This commit is contained in:
Victor Shcherb 2014-07-31 01:50:31 +02:00
parent 15a7221d57
commit a9d0afcb92

View file

@ -319,7 +319,8 @@ public class SavingTrackHelper extends SQLiteOpenHelper {
OsmAndLocationProvider.isNotSimulatedLocation(location) &&
OsmandPlugin.getEnabledPlugin(OsmandMonitoringPlugin.class) != null) {
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;
} else if (settings.SAVE_GLOBAL_TRACK_TO_GPX.get() &&
locationTime - lastTimeUpdated > settings.SAVE_GLOBAL_TRACK_INTERVAL.get()) {