From 2b02a888e7f6324f846a63f7775b53d0953b61b0 Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 27 Aug 2014 23:16:52 +0200 Subject: [PATCH] fix build --- OsmAnd/src/net/osmand/plus/OsmandApplication.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/OsmandApplication.java b/OsmAnd/src/net/osmand/plus/OsmandApplication.java index ae2e1f46b6..891932add6 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandApplication.java +++ b/OsmAnd/src/net/osmand/plus/OsmandApplication.java @@ -850,11 +850,9 @@ public class OsmandApplication extends Application { final Intent serviceIntent = new Intent(this, NavigationService.class); serviceIntent.putExtra(NavigationService.USAGE_INTENT, intent); if (getNavigationService() == null) { - if (intent == NavigationService.USED_BY_GPX) { + if (intent != NavigationService.USED_BY_GPX) { //for only-USED_BY_GPX case use pre-configured SERVICE_OFF_INTERVAL - getSettings().SERVICE_OFF_INTERVAL.set(); - } else { - //other cases always use "continuous" + //other cases always use "continuous": getSettings().SERVICE_OFF_INTERVAL.set(0); } startService(serviceIntent);