fix build

This commit is contained in:
sonora 2014-08-27 23:16:52 +02:00
parent 3ce777fde4
commit 2b02a888e7

View file

@ -850,11 +850,9 @@ public class OsmandApplication extends Application {
final Intent serviceIntent = new Intent(this, NavigationService.class); final Intent serviceIntent = new Intent(this, NavigationService.class);
serviceIntent.putExtra(NavigationService.USAGE_INTENT, intent); serviceIntent.putExtra(NavigationService.USAGE_INTENT, intent);
if (getNavigationService() == null) { 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 //for only-USED_BY_GPX case use pre-configured SERVICE_OFF_INTERVAL
getSettings().SERVICE_OFF_INTERVAL.set(); //other cases always use "continuous":
} else {
//other cases always use "continuous"
getSettings().SERVICE_OFF_INTERVAL.set(0); getSettings().SERVICE_OFF_INTERVAL.set(0);
} }
startService(serviceIntent); startService(serviceIntent);