Merge pull request #636 from krabaey/issue-prevent-intent-rehandling

set intent to null when handled
This commit is contained in:
vshcherb 2014-05-13 01:28:50 +03:00
commit 4c49e05da5
2 changed files with 3 additions and 0 deletions

View file

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

View file

@ -76,6 +76,7 @@ public class GeoIntentActivity extends OsmandListActivity {
progress.setCancelable(true);
task.execute();
setIntent(null);
}
}