Merge pull request #855 from Zahnstocher/substring-patch
Remove wrong substring
This commit is contained in:
commit
462e92ca3c
1 changed files with 1 additions and 2 deletions
|
@ -476,8 +476,7 @@ public class GeoIntentActivity extends OsmandListActivity {
|
||||||
.replaceAll(" ", ",");
|
.replaceAll(" ", ",");
|
||||||
System.out.println(query);
|
System.out.println(query);
|
||||||
//String is split on each comma
|
//String is split on each comma
|
||||||
String[] s = query.substring(query
|
String[] s = query.split(",");
|
||||||
.indexOf("q=") + 2).split(",");
|
|
||||||
|
|
||||||
elements = new ArrayList<String>();
|
elements = new ArrayList<String>();
|
||||||
for (int i = 0; i<s.length; i++) {
|
for (int i = 0; i<s.length; i++) {
|
||||||
|
|
Loading…
Reference in a new issue