revert osmand routing functionality for development

This commit is contained in:
Victor Shcherb 2011-01-16 14:45:13 +01:00
parent de5418f540
commit a68d4b1ce3
2 changed files with 5 additions and 5 deletions

View file

@ -266,12 +266,12 @@ public class OsmandSettings {
public static final String ROUTER_SERVICE = "router_service"; //$NON-NLS-1$
public static RouteService getRouterService(SharedPreferences prefs) {
int ord = prefs.getInt(ROUTER_SERVICE, RouteService.CLOUDMADE.ordinal());
int ord = prefs.getInt(ROUTER_SERVICE, RouteService.OSMAND.ordinal());
// that fix specially for 0.5.2 release
if(ord < 2){
if(ord < RouteService.values().length){
return RouteService.values()[ord];
} else {
return RouteService.CLOUDMADE;
return RouteService.OSMAND;
}
}

View file

@ -281,9 +281,9 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
}
fill(daynightMode, names, values, OsmandSettings.getDayNightMode(prefs).name());
String[] entries = new String[2];
String[] entries = new String[RouteService.values().length];
String entry = OsmandSettings.getRouterService(prefs).getName();
for (int i = 0; i < 2; i++) {
for (int i = 0; i < RouteService.values().length; i++) {
entries[i] = RouteService.values()[i].getName();
}
fill(routerPreference, entries, entries, entry);