Change to kmh

This commit is contained in:
Victor Shcherb 2016-10-21 09:57:13 +02:00
parent 8d8037a0cc
commit 7f7d0fa895

View file

@ -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));