From a7d584803ec8766058ae898b8ef251ad154de19c Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 27 Aug 2014 21:34:28 +0200 Subject: [PATCH] fix build --- OsmAnd/src/net/osmand/plus/OsmandApplication.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);