From 012af31ef46eeb3fdd07a9cc80f91615c0e7a6eb Mon Sep 17 00:00:00 2001 From: Koen Rabaey Date: Sat, 3 May 2014 18:05:42 +0200 Subject: [PATCH] osmand specific intents --- OsmAnd/AndroidManifest.xml | 2 ++ OsmAnd/src/net/osmand/plus/activities/MapActivity.java | 2 +- .../net/osmand/plus/activities/search/GeoIntentActivity.java | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OsmAnd/AndroidManifest.xml b/OsmAnd/AndroidManifest.xml index 31ee0e2b14..28e6de915d 100644 --- a/OsmAnd/AndroidManifest.xml +++ b/OsmAnd/AndroidManifest.xml @@ -85,6 +85,7 @@ + @@ -130,6 +131,7 @@ + diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 71e9da3b8a..0ef56678c0 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -342,7 +342,7 @@ public class MapActivity extends AccessibleActivity { { showImportedGpx(data.getPath()); } - else if("google.navigation".equals(scheme)) + else if("google.navigation".equals(scheme) || "osmand.navigation".equals(scheme)) { final String schemeSpecificPart = data.getSchemeSpecificPart(); diff --git a/OsmAnd/src/net/osmand/plus/activities/search/GeoIntentActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/GeoIntentActivity.java index 58d3390a07..bb9b198c0e 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/GeoIntentActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/GeoIntentActivity.java @@ -276,7 +276,7 @@ public class GeoIntentActivity extends OsmandListActivity { return null; } } - if ("geo".equals(scheme)) + if ("geo".equals(scheme) || "osmand.geo".equals(scheme)) { //geo: final String schemeSpecific = data.getSchemeSpecificPart();