fix build
This commit is contained in:
parent
3ce777fde4
commit
2b02a888e7
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue