From 85a827d9ef35afb5a0d6afa44d000667bb548b24 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 24 Jul 2020 11:20:02 +0300 Subject: [PATCH] Fix #9484 --- .../osmand/plus/activities/SettingsNavigationActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/SettingsNavigationActivity.java b/OsmAnd/src/net/osmand/plus/activities/SettingsNavigationActivity.java index e128a6da80..b3db4562d8 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SettingsNavigationActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/SettingsNavigationActivity.java @@ -757,8 +757,8 @@ public class SettingsNavigationActivity extends SettingsBaseActivity { final int min; final int max; if (defaultSpeedOnly) { - minValue[0] = Math.round(1 * ratio[0]); - maxValue[0] = Math.round(300 * ratio[0]); + minValue[0] = Math.round(Math.min(1, settingsDefaultSpeed) * ratio[0]); + maxValue[0] = Math.round(Math.max(300, settingsDefaultSpeed) * ratio[0]); min = minValue[0]; max = maxValue[0]; } else {