From 21202070def41a76a8d03c7b1346e78794195641 Mon Sep 17 00:00:00 2001 From: chumv Date: Fri, 20 Dec 2024 14:01:59 +0200 Subject: [PATCH] Remove overridingMetricSystem after DRIVING_REGION change --- .../net/osmand/plus/settings/backend/OsmandSettings.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java index 4ee64f2a873..3249470917a 100644 --- a/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java @@ -1047,14 +1047,6 @@ public ApplicationMode parseString(String s) { public final OsmandPreference DRIVING_REGION = new EnumStringPreference(this, "default_driving_region", DrivingRegion.EUROPE_ASIA, DrivingRegion.values()) { - public boolean setValue(Object prefs, DrivingRegion val) { - boolean overrideMetricSystem = !DRIVING_REGION_AUTOMATIC.getValue(prefs, DRIVING_REGION_AUTOMATIC.getDefaultValue()); - if (overrideMetricSystem && val != null) { - METRIC_SYSTEM.setValue(prefs, val.defMetrics); - } - return super.setValue(prefs, val); - } - public DrivingRegion getDefaultValue() { return DrivingRegion.getDrivingRegionByLocale(); }