Small issue fix
This commit is contained in:
parent
bc703394c1
commit
0f3a480ec4
1 changed files with 2 additions and 2 deletions
|
@ -322,13 +322,13 @@ public class OsmandMonitoringPlugin extends OsmandPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void startGPXMonitoring(Activity map) {
|
public void startGPXMonitoring(Activity map) {
|
||||||
app.getSavingTrackHelper().startNewSegment();
|
|
||||||
final ValueHolder<Integer> vs = new ValueHolder<Integer>();
|
final ValueHolder<Integer> vs = new ValueHolder<Integer>();
|
||||||
final ValueHolder<Boolean> choice = new ValueHolder<Boolean>();
|
final ValueHolder<Boolean> choice = new ValueHolder<Boolean>();
|
||||||
vs.value = settings.SAVE_GLOBAL_TRACK_INTERVAL.get();
|
vs.value = settings.SAVE_GLOBAL_TRACK_INTERVAL.get();
|
||||||
choice.value = settings.SAVE_GLOBAL_TRACK_REMEMBER.get();
|
choice.value = settings.SAVE_GLOBAL_TRACK_REMEMBER.get();
|
||||||
final Runnable runnable = new Runnable() {
|
final Runnable runnable = new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
|
app.getSavingTrackHelper().startNewSegment();
|
||||||
settings.SAVE_GLOBAL_TRACK_INTERVAL.set(vs.value);
|
settings.SAVE_GLOBAL_TRACK_INTERVAL.set(vs.value);
|
||||||
settings.SAVE_GLOBAL_TRACK_TO_GPX.set(true);
|
settings.SAVE_GLOBAL_TRACK_TO_GPX.set(true);
|
||||||
settings.SAVE_GLOBAL_TRACK_REMEMBER.set(choice.value);
|
settings.SAVE_GLOBAL_TRACK_REMEMBER.set(choice.value);
|
||||||
|
|
Loading…
Reference in a new issue