Update SettingsGeneralActivity.java
Reverted back the Unit changes so it will be possible to select it independendtly from Driving region: https://code.google.com/p/osmand/issues/detail?id=2317 https://groups.google.com/forum/#!topic/osmand/9P6FclWSyw8
This commit is contained in:
parent
656939390d
commit
589eaf7ae2
1 changed files with 7 additions and 7 deletions
|
@ -138,16 +138,16 @@ public class SettingsGeneralActivity extends SettingsBaseActivity {
|
|||
DrivingRegion[] drs = DrivingRegion.values();
|
||||
entries = new String[drs.length];
|
||||
for (int i = 0; i < entries.length; i++) {
|
||||
entries[i] = getString(drs[i].name) + " (" + drs[i].defMetrics.toHumanString(this) +")" ;
|
||||
entries[i] = getString(drs[i].name); // + " (" + drs[i].defMetrics.toHumanString(this) +")" ;
|
||||
}
|
||||
registerListPreference(settings.DRIVING_REGION, screen, entries, drs);
|
||||
|
||||
// MetricsConstants[] mvls = MetricsConstants.values();
|
||||
// entries = new String[mvls.length];
|
||||
// for(int i=0; i<entries.length; i++){
|
||||
// entries[i] = mvls[i].toHumanString(getMyApplication());
|
||||
// }
|
||||
// registerListPreference(settings.METRIC_SYSTEM, screen, entries, mvls);
|
||||
MetricsConstants[] mvls = MetricsConstants.values();
|
||||
entries = new String[mvls.length];
|
||||
for(int i=0; i<entries.length; i++){
|
||||
entries[i] = mvls[i].toHumanString(getMyApplication());
|
||||
}
|
||||
registerListPreference(settings.METRIC_SYSTEM, screen, entries, mvls);
|
||||
|
||||
String incompleteSuffix = " (" + getString(R.string.incomplete_locale) + ")";
|
||||
//getResources().getAssets().getLocales();
|
||||
|
|
Loading…
Reference in a new issue