Fix intermediate points bug

This commit is contained in:
Victor Shcherb 2013-07-18 22:03:01 +02:00
parent 32ae509457
commit d46d5572ea

View file

@ -1071,11 +1071,7 @@ public class OsmandSettings {
List<String> list = new ArrayList<String>(); List<String> list = new ArrayList<String>();
String ip = settingsAPI.getString(globalPreferences,INTERMEDIATE_POINTS_DESCRIPTION, ""); String ip = settingsAPI.getString(globalPreferences,INTERMEDIATE_POINTS_DESCRIPTION, "");
if (ip.trim().length() > 0) { if (ip.trim().length() > 0) {
StringTokenizer tok = new StringTokenizer(ip, "--"); list.addAll(Arrays.asList(ip.split("--")));
while (tok.hasMoreTokens()) {
String d = tok.nextToken();
list.add(d);
}
} }
while(list.size() < sz) { while(list.size() < sz) {
list.add(""); list.add("");