change ui for release (selecting route providers)

This commit is contained in:
Victor Shcherb 2011-01-16 14:05:46 +01:00
parent 2a492860ff
commit de5418f540

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[RouteService.values().length];
String[] entries = new String[2];
String entry = OsmandSettings.getRouterService(prefs).getName();
for(int i=0; i<entries.length; i++){
for (int i = 0; i < 2; i++) {
entries[i] = RouteService.values()[i].getName();
}
fill(routerPreference, entries, entries, entry);
@ -355,8 +355,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
tileSourcePreference.setSummary(summary + mapName);
}
private void fill(ListPreference component, String[] list, String[] values, String selected)
{
private void fill(ListPreference component, String[] list, String[] values, String selected) {
component.setEntries(list);
component.setEntryValues(values);
component.setValue(selected);