Fix compilation errors

This commit is contained in:
vshcherb 2013-10-23 23:56:49 +02:00
parent 6c7e6d9c8f
commit c7d8e1dcfb
2 changed files with 3 additions and 4 deletions

View file

@ -678,11 +678,10 @@ public class OsmandSettings {
RouteService.values()).makeProfile(); RouteService.values()).makeProfile();
// this value string is synchronized with settings_pref.xml preference name // this value string is synchronized with settings_pref.xml preference name
public final OsmandPreference<AutoZoomMap> AUTO_ZOOM_MAP = public final CommonPreference<AutoZoomMap> AUTO_ZOOM_MAP =
new EnumIntPreference<AutoZoomMap>("auto_zoom_map", AutoZoomMap.NONE, new EnumIntPreference<AutoZoomMap>("auto_zoom_map", AutoZoomMap.NONE,
AutoZoomMap.values()); AutoZoomMap.values()).makeProfile().cache();
{ {
AUTO_ZOOM_MAP.makeProfile().cache();
AUTO_ZOOM_MAP.setModeDefaultValue(ApplicationMode.CAR, AutoZoomMap.FARTHEST); AUTO_ZOOM_MAP.setModeDefaultValue(ApplicationMode.CAR, AutoZoomMap.FARTHEST);
AUTO_ZOOM_MAP.setModeDefaultValue(ApplicationMode.BICYCLE, AutoZoomMap.NONE); AUTO_ZOOM_MAP.setModeDefaultValue(ApplicationMode.BICYCLE, AutoZoomMap.NONE);
AUTO_ZOOM_MAP.setModeDefaultValue(ApplicationMode.PEDESTRIAN, AutoZoomMap.NONE); AUTO_ZOOM_MAP.setModeDefaultValue(ApplicationMode.PEDESTRIAN, AutoZoomMap.NONE);

View file

@ -7,8 +7,8 @@ import java.util.Set;
import net.osmand.IndexConstants; import net.osmand.IndexConstants;
import net.osmand.plus.OsmandSettings; import net.osmand.plus.OsmandSettings;
import net.osmand.plus.OsmandSettings.OsmandPreference;
import net.osmand.plus.OsmandSettings.AutoZoomMap; import net.osmand.plus.OsmandSettings.AutoZoomMap;
import net.osmand.plus.OsmandSettings.OsmandPreference;
import net.osmand.plus.R; import net.osmand.plus.R;
import net.osmand.plus.routing.RouteProvider.RouteService; import net.osmand.plus.routing.RouteProvider.RouteService;
import android.app.AlertDialog; import android.app.AlertDialog;