From 68bcae42a2887410f11ecc07c2763dd3d66135c7 Mon Sep 17 00:00:00 2001 From: Koen Rabaey Date: Mon, 12 May 2014 21:36:30 +0200 Subject: [PATCH] set intent to null when handled --- OsmAnd/src/net/osmand/plus/activities/MapActivity.java | 2 ++ .../net/osmand/plus/activities/search/GeoIntentActivity.java | 1 + 2 files changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index bf313580a0..ce797b3cd3 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -351,6 +351,7 @@ public class MapActivity extends AccessibleActivity { { showImportedGpx(new File(data.getPath())); } + setIntent(null); } else if("google.navigation".equals(scheme) || "osmand.navigation".equals(scheme)) { @@ -376,6 +377,7 @@ public class MapActivity extends AccessibleActivity { { AccessibleToast.makeText(this, getString(R.string.navigation_intent_invalid, schemeSpecificPart), Toast.LENGTH_LONG).show(); //$NON-NLS-1$ } + setIntent(null); } } } diff --git a/OsmAnd/src/net/osmand/plus/activities/search/GeoIntentActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/GeoIntentActivity.java index bb9b198c0e..08968b1f51 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/GeoIntentActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/GeoIntentActivity.java @@ -76,6 +76,7 @@ public class GeoIntentActivity extends OsmandListActivity { progress.setCancelable(true); task.execute(); + setIntent(null); } }