Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
53ad638ae5
1 changed files with 2 additions and 4 deletions
|
@ -850,10 +850,8 @@ 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) {
|
||||
//Use pre-selected SERVICE_OFF_INTERVAL for global GPX recording
|
||||
getSettings().SERVICE_OFF_INTERVAL.set();
|
||||
} else {
|
||||
if (intent != NavigationService.USED_BY_GPX) {
|
||||
//Use pre-selected SERVICE_OFF_INTERVAL for global GPX recording
|
||||
getSettings().SERVICE_OFF_INTERVAL.set(0);
|
||||
}
|
||||
startService(serviceIntent);
|
||||
|
|
Loading…
Reference in a new issue