Merge pull request #7698 from osmandapp/Fix_7368

Fix #7368
This commit is contained in:
max-klaus 2019-10-18 20:24:49 +03:00 committed by GitHub
commit 6b49cc689d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -745,6 +745,13 @@ public class SettingsNavigationActivity extends SettingsBaseActivity {
case NAUTICALMILES_PER_HOUR:
ratio[0] = 3600 / OsmAndFormatter.METERS_IN_ONE_NAUTICALMILE;
break;
case MINUTES_PER_MILE:
ratio[0] = 3600 / OsmAndFormatter.METERS_IN_ONE_MILE;
speedUnits = activity.getString(R.string.mile_per_hour);
break;
case METERS_PER_SECOND:
ratio[0] = 1;
break;
}
float settingsMinSpeed = settings.MIN_SPEED.get();