fix build
This commit is contained in:
parent
e1a57091fa
commit
c756d06436
1 changed files with 3 additions and 4 deletions
|
@ -851,13 +851,12 @@ public class OsmandApplication extends Application {
|
|||
serviceIntent.putExtra(NavigationService.USAGE_INTENT, intent);
|
||||
if (getNavigationService() == null) {
|
||||
if (intent == NavigationService.USED_BY_GPX) {
|
||||
if (settings.SAVE_GLOBAL_TRACK_INTERVAL.set() < 30000) {
|
||||
settings.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
|
||||
settings.SERVICE_OFF_INTERVAL.set(settings.SAVE_GLOBAL_TRACK_INTERVAL.set());
|
||||
getSettings.SERVICE_OFF_INTERVAL.set(getSettings.SAVE_GLOBAL_TRACK_INTERVAL.set());
|
||||
}
|
||||
getSettings().SERVICE_OFF_INTERVAL.set();
|
||||
} else {
|
||||
getSettings().SERVICE_OFF_INTERVAL.set(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue