From 4e702ed0cc62627c4beb7336d3ab44a02e5d572a Mon Sep 17 00:00:00 2001 From: frankknoll Date: Tue, 26 Nov 2024 11:06:07 +0100 Subject: [PATCH] refactoring --- .../plus/settings/backend/OsmandSettings.java | 48 ++----------------- 1 file changed, 5 insertions(+), 43 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java index 13c23a0e67f..25676ec7c20 100644 --- a/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java @@ -84,37 +84,10 @@ import net.osmand.plus.settings.backend.menuitems.ContextMenuItemsSettings; import net.osmand.plus.settings.backend.menuitems.DrawerMenuItemsSettings; import net.osmand.plus.settings.backend.menuitems.MainContextMenuItemsSettings; -import net.osmand.plus.settings.backend.preferences.BooleanAccessibilityPreference; -import net.osmand.plus.settings.backend.preferences.BooleanPreference; -import net.osmand.plus.settings.backend.preferences.BooleanStringPreference; -import net.osmand.plus.settings.backend.preferences.CommonPreference; -import net.osmand.plus.settings.backend.preferences.ContextMenuItemsPreference; -import net.osmand.plus.settings.backend.preferences.EnumStringPreference; -import net.osmand.plus.settings.backend.preferences.FloatPreference; -import net.osmand.plus.settings.backend.preferences.IntPreference; -import net.osmand.plus.settings.backend.preferences.ListStringPreference; -import net.osmand.plus.settings.backend.preferences.LongPreference; -import net.osmand.plus.settings.backend.preferences.OsmandPreference; -import net.osmand.plus.settings.backend.preferences.PreferenceWithListener; -import net.osmand.plus.settings.backend.preferences.StringPreference; +import net.osmand.plus.settings.backend.preferences.*; import net.osmand.plus.settings.backend.storages.ImpassableRoadsStorage; import net.osmand.plus.settings.backend.storages.IntermediatePointsStorage; -import net.osmand.plus.settings.enums.AngularConstants; -import net.osmand.plus.settings.enums.ApproximationType; -import net.osmand.plus.settings.enums.AutoZoomMap; -import net.osmand.plus.settings.enums.CompassMode; -import net.osmand.plus.settings.enums.DayNightMode; -import net.osmand.plus.settings.enums.DistanceByTapTextSize; -import net.osmand.plus.settings.enums.DrivingRegion; -import net.osmand.plus.settings.enums.HistorySource; -import net.osmand.plus.settings.enums.LocationSource; -import net.osmand.plus.settings.enums.MarkerDisplayOption; -import net.osmand.plus.settings.enums.RoutingType; -import net.osmand.plus.settings.enums.SimulationMode; -import net.osmand.plus.settings.enums.SpeedLimitWarningState; -import net.osmand.plus.settings.enums.TrackApproximationType; -import net.osmand.plus.settings.enums.TracksSortMode; -import net.osmand.plus.settings.enums.WidgetSize; +import net.osmand.plus.settings.enums.*; import net.osmand.plus.utils.AndroidUtils; import net.osmand.plus.utils.FileUtils; import net.osmand.plus.views.layers.RadiusRulerControlLayer.RadiusRulerMode; @@ -122,10 +95,10 @@ import net.osmand.plus.views.mapwidgets.WidgetsPanel; import net.osmand.plus.wikipedia.WikiArticleShowImages; import net.osmand.render.RenderingRulesStorage; -import net.osmand.shared.gpx.ColoringPurpose; -import net.osmand.shared.routing.ColoringType; import net.osmand.shared.settings.enums.MetricsConstants; import net.osmand.shared.settings.enums.SpeedConstants; +import net.osmand.shared.gpx.ColoringPurpose; +import net.osmand.shared.routing.ColoringType; import net.osmand.util.Algorithms; import org.apache.commons.logging.Log; @@ -134,19 +107,8 @@ import java.io.File; import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.Map.Entry; -import java.util.Set; -import java.util.StringTokenizer; public class OsmandSettings {