Added negative speed tolerance

This commit is contained in:
PaulStets 2018-01-27 12:34:37 +02:00
parent 6f96fa61ac
commit 556cb64fc8

View file

@ -194,8 +194,8 @@ public class SettingsNavigationActivity extends SettingsBaseActivity {
registerListPreference(settings.ARRIVAL_DISTANCE_FACTOR, screen, arrivalNames, arrivalValues);
//array size should be equal!
Float[] speedLimitsKm = new Float[]{0f, 5f, 7f, 10f, 15f, 20f};
Float[] speedLimitsMiles = new Float[]{0f, 3f, 5f, 7f, 10f, 15f};
Float[] speedLimitsKm = new Float[]{-10f, -7f,-5f, 0f, 5f, 7f, 10f, 15f, 20f};
Float[] speedLimitsMiles = new Float[]{-7f, -5f, -3f, 0f, 3f, 5f, 7f, 10f, 15f};
if (settings.METRIC_SYSTEM.get() == OsmandSettings.MetricsConstants.KILOMETERS_AND_METERS) {
String[] speedNames = new String[speedLimitsKm.length];
for (int i =0; i<speedLimitsKm.length;i++){