Try change task order in AppInitializer to restart NavigationService
This commit is contained in:
parent
d298d61294
commit
dd5d721f21
1 changed files with 3 additions and 3 deletions
|
@ -396,6 +396,9 @@ public class AppInitializer implements IProgress {
|
||||||
|
|
||||||
|
|
||||||
private void saveGPXTracks() {
|
private void saveGPXTracks() {
|
||||||
|
if(app.getSettings().SAVE_GLOBAL_TRACK_TO_GPX.get()){
|
||||||
|
app.startNavigationService(NavigationService.USED_BY_GPX);
|
||||||
|
}
|
||||||
if (app.savingTrackHelper.hasDataToSave()) {
|
if (app.savingTrackHelper.hasDataToSave()) {
|
||||||
long timeUpdated = app.savingTrackHelper.getLastTrackPointTime();
|
long timeUpdated = app.savingTrackHelper.getLastTrackPointTime();
|
||||||
if (System.currentTimeMillis() - timeUpdated >= 1000 * 60 * 30) {
|
if (System.currentTimeMillis() - timeUpdated >= 1000 * 60 * 30) {
|
||||||
|
@ -409,9 +412,6 @@ public class AppInitializer implements IProgress {
|
||||||
app.savingTrackHelper.loadGpxFromDatabase();
|
app.savingTrackHelper.loadGpxFromDatabase();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(app.getSettings().SAVE_GLOBAL_TRACK_TO_GPX.get()){
|
|
||||||
app.startNavigationService(NavigationService.USED_BY_GPX);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue