diff --git a/OsmAnd/src/net/osmand/plus/OsmandApplication.java b/OsmAnd/src/net/osmand/plus/OsmandApplication.java index f443c21afa..5b3a7d9038 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandApplication.java +++ b/OsmAnd/src/net/osmand/plus/OsmandApplication.java @@ -851,11 +851,11 @@ public class OsmandApplication extends Application { serviceIntent.putExtra(NavigationService.USAGE_INTENT, intent); if (getNavigationService() == null) { if (intent == NavigationService.USED_BY_GPX) { - if (getSettings.SAVE_GLOBAL_TRACK_INTERVAL.set() < 30000) { - getSettings.SERVICE_OFF_INTERVAL.set(0); + if (getSettings().SAVE_GLOBAL_TRACK_INTERVAL.set() < 30000) { + getSettings().SERVICE_OFF_INTERVAL.set(0); } else { //Use SERVICE_OFF_INTERVAL > 0 to conserve power for longer GPX recording intervals - getSettings.SERVICE_OFF_INTERVAL.set(getSettings.SAVE_GLOBAL_TRACK_INTERVAL.set()); + getSettings().SERVICE_OFF_INTERVAL.set(getSettings().SAVE_GLOBAL_TRACK_INTERVAL.set()); } } else { getSettings().SERVICE_OFF_INTERVAL.set(0);