Restore support for c:geo intent
This commit is contained in:
parent
4f054f2a71
commit
b9efcf232d
1 changed files with 10 additions and 5 deletions
|
@ -321,6 +321,9 @@ public class GeoIntentActivity extends OsmandListActivity {
|
|||
matcher = Pattern.compile(pattern).matcher(schemeSpecific);
|
||||
}
|
||||
|
||||
final String pattern2 = "([\\-0-9.]+),([\\-0-9.]+)(?:.*)"; //c:geo
|
||||
final Matcher matcher2 = Pattern.compile(pattern2).matcher(schemeSpecific);
|
||||
|
||||
if (matcher.matches())
|
||||
{
|
||||
final double lat = Double.valueOf(matcher.group(1));
|
||||
|
@ -333,9 +336,11 @@ public class GeoIntentActivity extends OsmandListActivity {
|
|||
{
|
||||
return new GeoPointSearch(lat, lon, Integer.valueOf(matcher.group(4)));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
} else if (matcher2.matches()) {
|
||||
final double lat = Double.valueOf(matcher2.group(1));
|
||||
final double lon = Double.valueOf(matcher2.group(2));
|
||||
return new GeoPointSearch(lat, lon);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue