Change to kmh
This commit is contained in:
parent
8d8037a0cc
commit
7f7d0fa895
1 changed files with 3 additions and 2 deletions
|
@ -103,11 +103,12 @@ public class SettingsMonitoringActivity extends SettingsBaseActivity {
|
|||
}
|
||||
cat.addPreference(createListPreference(settings.SAVE_TRACK_PRECISION, names, floatValues,
|
||||
R.string.save_track_precision, R.string.save_track_precision_descr));
|
||||
floatValues = new Float[] {0.f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f};
|
||||
floatValues = new Float[] {0.f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f};
|
||||
names = new String[floatValues.length];
|
||||
names[0] = getString(R.string.shared_string_not_selected);
|
||||
for(int i = 1; i < floatValues.length; i++) {
|
||||
names[i] = floatValues[i].intValue() + " " + getString(R.string.m_s);
|
||||
names[i] = floatValues[i].intValue() + " " + getString(R.string.km_h);
|
||||
floatValues[i] = floatValues[i] / 3.6f;
|
||||
}
|
||||
cat.addPreference(createListPreference(settings.SAVE_TRACK_MIN_SPEED, names, floatValues,
|
||||
R.string.save_track_min_speed, R.string.save_track_min_speed_descr));
|
||||
|
|
Loading…
Reference in a new issue