Merge pull request #855 from Zahnstocher/substring-patch

Remove wrong substring
This commit is contained in:
vshcherb 2014-08-27 22:15:14 +02:00
commit 462e92ca3c

View file

@ -476,8 +476,7 @@ public class GeoIntentActivity extends OsmandListActivity {
.replaceAll(" ", ",");
System.out.println(query);
//String is split on each comma
String[] s = query.substring(query
.indexOf("q=") + 2).split(",");
String[] s = query.split(",");
elements = new ArrayList<String>();
for (int i = 0; i<s.length; i++) {