Fix compilation errors
This commit is contained in:
parent
6c7e6d9c8f
commit
c7d8e1dcfb
2 changed files with 3 additions and 4 deletions
|
@ -678,11 +678,10 @@ public class OsmandSettings {
|
|||
RouteService.values()).makeProfile();
|
||||
|
||||
// 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,
|
||||
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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue