Update start immediately navigation

This commit is contained in:
Victor Shcherb 2014-06-19 16:36:27 +02:00
parent 14cc9bd1b4
commit 4eb397f25e

View file

@ -754,7 +754,15 @@ public class OsmandSettings {
AUTO_ZOOM_MAP.setModeDefaultValue(ApplicationMode.PEDESTRIAN, AutoZoomMap.NONE);
}
public final CommonPreference<Integer> DELAY_TO_START_NAVIGATION = new IntPreference("delay_to_start_navigation", 10).makeGlobal().cache();
public final CommonPreference<Integer> DELAY_TO_START_NAVIGATION = new IntPreference("delay_to_start_navigation", -1) {
protected Integer getDefaultValue() {
if(DEFAULT_APPLICATION_MODE.get().isDerivedRoutingFrom(ApplicationMode.CAR)) {
return 10;
}
return -1;
};
}.makeGlobal().cache();
public final CommonPreference<Boolean> SNAP_TO_ROAD = new BooleanPreference("snap_to_road", false).makeProfile().cache();
{