From c82f85bb92db7ab2bea701fd9b85557f1b505e46 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 25 Jun 2019 01:35:25 +0200 Subject: [PATCH] Add todo --- OsmAnd/src/net/osmand/plus/ApplicationMode.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/ApplicationMode.java b/OsmAnd/src/net/osmand/plus/ApplicationMode.java index 0f802ecccc..f6d1d1af3f 100644 --- a/OsmAnd/src/net/osmand/plus/ApplicationMode.java +++ b/OsmAnd/src/net/osmand/plus/ApplicationMode.java @@ -522,6 +522,7 @@ public class ApplicationMode { private static void initCustomModes(OsmandSettings settings){ Gson gson = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().create(); Type t = new TypeToken>() {}.getType(); + // TODO ?? clear settings List customProfiles = gson.fromJson(settings.CUSTOM_APP_PROFILES.get(), t); if (!Algorithms.isEmpty(customProfiles)) { @@ -576,6 +577,7 @@ public class ApplicationMode { } public static boolean changeProfileStatus(ApplicationMode mode, boolean isSelected, OsmandApplication app) { + // TODO ????? Set selectedModes = new LinkedHashSet<>(ApplicationMode.values(app)); StringBuilder vls = new StringBuilder(ApplicationMode.DEFAULT.getStringKey() + ","); if (allPossibleValues().contains(mode)) {