fix build
This commit is contained in:
parent
c756d06436
commit
a7d584803e
1 changed files with 3 additions and 3 deletions
|
@ -851,11 +851,11 @@ public class OsmandApplication extends Application {
|
||||||
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) {
|
||||||
if (getSettings.SAVE_GLOBAL_TRACK_INTERVAL.set() < 30000) {
|
if (getSettings().SAVE_GLOBAL_TRACK_INTERVAL.set() < 30000) {
|
||||||
getSettings.SERVICE_OFF_INTERVAL.set(0);
|
getSettings().SERVICE_OFF_INTERVAL.set(0);
|
||||||
} else {
|
} else {
|
||||||
//Use SERVICE_OFF_INTERVAL > 0 to conserve power for longer GPX recording intervals
|
//Use SERVICE_OFF_INTERVAL > 0 to conserve power for longer GPX recording intervals
|
||||||
getSettings.SERVICE_OFF_INTERVAL.set(getSettings.SAVE_GLOBAL_TRACK_INTERVAL.set());
|
getSettings().SERVICE_OFF_INTERVAL.set(getSettings().SAVE_GLOBAL_TRACK_INTERVAL.set());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
getSettings().SERVICE_OFF_INTERVAL.set(0);
|
getSettings().SERVICE_OFF_INTERVAL.set(0);
|
||||||
|
|
Loading…
Reference in a new issue