permission not needed

This commit is contained in:
Koen Rabaey 2014-05-25 00:42:46 +02:00
parent 4b426efc8a
commit c51700721e

View file

@ -197,7 +197,6 @@ public class LocalIndexesActivity extends OsmandExpandableListActivity {
final Uri fileUri = Uri.fromFile(new File(info.getPathToData())); final Uri fileUri = Uri.fromFile(new File(info.getPathToData()));
final Intent sendIntent = new Intent(Intent.ACTION_SEND); final Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_STREAM, fileUri); sendIntent.putExtra(Intent.EXTRA_STREAM, fileUri);
sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
sendIntent.setType("application/gpx+xml"); sendIntent.setType("application/gpx+xml");
startActivity(sendIntent); startActivity(sendIntent);
} }