fix build

This commit is contained in:
sonora 2014-08-27 21:25:44 +02:00
parent e1a57091fa
commit c756d06436

View file

@ -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);
}