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)) {