Try to fix export track to BT

This commit is contained in:
max-klaus 2019-11-20 14:09:14 +03:00
parent f768e73a38
commit 84448d4790

View file

@ -1474,7 +1474,7 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment implement
final Uri fileUri = AndroidUtils.getUriForFile(getMyApplication(), gpxInfo.file); final Uri fileUri = AndroidUtils.getUriForFile(getMyApplication(), gpxInfo.file);
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.setType("application/gpx+xml"); sendIntent.setType("text/plain");
sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
startActivity(sendIntent); startActivity(sendIntent);
return true; return true;