change ui for release (selecting route providers)
This commit is contained in:
parent
2a492860ff
commit
de5418f540
1 changed files with 8 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue