fix build

This commit is contained in:
sonora 2014-08-27 21:34:28 +02:00
parent c756d06436
commit a7d584803e

View file

@ -851,11 +851,11 @@ public class OsmandApplication extends Application {
serviceIntent.putExtra(NavigationService.USAGE_INTENT, intent);
if (getNavigationService() == null) {
if (intent == NavigationService.USED_BY_GPX) {
if (getSettings.SAVE_GLOBAL_TRACK_INTERVAL.set() < 30000) {
getSettings.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
getSettings.SERVICE_OFF_INTERVAL.set(getSettings.SAVE_GLOBAL_TRACK_INTERVAL.set());
getSettings().SERVICE_OFF_INTERVAL.set(getSettings().SAVE_GLOBAL_TRACK_INTERVAL.set());
}
} else {
getSettings().SERVICE_OFF_INTERVAL.set(0);