From b5c18d2d642d837589e8be40078a0ef866b24c04 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 6 Jun 2015 13:12:42 +0200 Subject: [PATCH] Fix selection --- OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java index edb54dc556..cb5fd38829 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java @@ -569,7 +569,9 @@ public class ConfigureMapMenu { b.setTitle(propertyDescr); int i = Arrays.asList(p.getPossibleValues()).indexOf(pref.get()); - if(Algorithms.isEmpty(pref.get())) { + if (i >= 0) { + i++; + } else if (Algorithms.isEmpty(pref.get())) { i = 0; }