Merge pull request #4955 from osmandapp/PaulsBranch
Added negative speed tolerance
This commit is contained in:
commit
235e634c8b
1 changed files with 2 additions and 2 deletions
|
@ -194,8 +194,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[]{0f, 5f, 7f, 10f, 15f, 20f};
|
Float[] speedLimitsKm = new Float[]{-10f, -7f,-5f, 0f, 5f, 7f, 10f, 15f, 20f};
|
||||||
Float[] speedLimitsMiles = new Float[]{0f, 3f, 5f, 7f, 10f, 15f};
|
Float[] speedLimitsMiles = new Float[]{-7f, -5f, -3f, 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++){
|
||||||
|
|
Loading…
Reference in a new issue