Merge pull request #919 from Bars107/master

Added zero number speed limit.
This commit is contained in:
vshcherb 2014-10-13 23:28:26 +02:00
commit 36ece2a2f0

View file

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