diff --git a/OsmAnd/src/net/osmand/plus/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/OsmandSettings.java index 1f23e794b3..911db45695 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/OsmandSettings.java @@ -1073,6 +1073,9 @@ public class OsmandSettings { if (ip.trim().length() > 0) { list.addAll(Arrays.asList(ip.split("--"))); } + while(list.size() > sz) { + list.remove(list.size() - 1); + } while(list.size() < sz) { list.add(""); }