From c7d8e1dcfb5dbe506767cf68afab42991c27aeb0 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Wed, 23 Oct 2013 23:56:49 +0200 Subject: [PATCH] Fix compilation errors --- OsmAnd/src/net/osmand/plus/OsmandSettings.java | 5 ++--- .../osmand/plus/activities/SettingsNavigationActivity.java | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/OsmandSettings.java index 1fafbbd6fd..895f6fb91d 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/OsmandSettings.java @@ -678,11 +678,10 @@ public class OsmandSettings { RouteService.values()).makeProfile(); // this value string is synchronized with settings_pref.xml preference name - public final OsmandPreference AUTO_ZOOM_MAP = + public final CommonPreference AUTO_ZOOM_MAP = new EnumIntPreference("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.BICYCLE, AutoZoomMap.NONE); AUTO_ZOOM_MAP.setModeDefaultValue(ApplicationMode.PEDESTRIAN, AutoZoomMap.NONE); diff --git a/OsmAnd/src/net/osmand/plus/activities/SettingsNavigationActivity.java b/OsmAnd/src/net/osmand/plus/activities/SettingsNavigationActivity.java index 6c7a9c540a..6991d700c8 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SettingsNavigationActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/SettingsNavigationActivity.java @@ -7,8 +7,8 @@ import java.util.Set; import net.osmand.IndexConstants; import net.osmand.plus.OsmandSettings; -import net.osmand.plus.OsmandSettings.OsmandPreference; import net.osmand.plus.OsmandSettings.AutoZoomMap; +import net.osmand.plus.OsmandSettings.OsmandPreference; import net.osmand.plus.R; import net.osmand.plus.routing.RouteProvider.RouteService; import android.app.AlertDialog;