Update GeoIntentActivity.java
This commit is contained in:
parent
37668879e0
commit
2251d8e0c1
1 changed files with 3 additions and 0 deletions
|
@ -202,6 +202,9 @@ public class GeoIntentActivity extends OsmandListActivity {
|
|||
private MyService extract(Uri data) {
|
||||
if ("http".equalsIgnoreCase(data.getScheme()) && "maps.google.com".equals(data.getHost())) {
|
||||
String q = data.getQueryParameter("q").split(" ")[0];
|
||||
if (q.indexOf(',') == -1) {
|
||||
q = data.getQueryParameter("daddr").split(" ")[0];
|
||||
}
|
||||
if (q.indexOf(',') != -1) {
|
||||
int i = q.indexOf(',');
|
||||
String lat = q.substring(0, i);
|
||||
|
|
Loading…
Reference in a new issue