Update GeoIntentActivity.java

This commit is contained in:
vshcherb 2013-09-06 01:29:10 +02:00
parent 37668879e0
commit 2251d8e0c1

View file

@ -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);