From 0f3a480ec42e029ad180a25485eaadda5dd97038 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 16 Apr 2015 18:18:14 +0200 Subject: [PATCH] Small issue fix --- .../net/osmand/plus/monitoring/OsmandMonitoringPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java b/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java index 92475ecb09..669788d4b2 100644 --- a/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java +++ b/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java @@ -247,7 +247,7 @@ public class OsmandMonitoringPlugin extends OsmandPlugin { items.add(R.string.save_current_track); } String[] strings = new String[items.size()]; - for(int i =0; i < strings.length; i++) { + for (int i = 0; i < strings.length; i++) { strings[i] = app.getString(items.get(i)); } final int[] holder = new int[] {0}; @@ -322,13 +322,13 @@ public class OsmandMonitoringPlugin extends OsmandPlugin { } public void startGPXMonitoring(Activity map) { - app.getSavingTrackHelper().startNewSegment(); final ValueHolder vs = new ValueHolder(); final ValueHolder choice = new ValueHolder(); vs.value = settings.SAVE_GLOBAL_TRACK_INTERVAL.get(); choice.value = settings.SAVE_GLOBAL_TRACK_REMEMBER.get(); final Runnable runnable = new Runnable() { public void run() { + app.getSavingTrackHelper().startNewSegment(); settings.SAVE_GLOBAL_TRACK_INTERVAL.set(vs.value); settings.SAVE_GLOBAL_TRACK_TO_GPX.set(true); settings.SAVE_GLOBAL_TRACK_REMEMBER.set(choice.value);