Fix #2863
This commit is contained in:
parent
809fe75d94
commit
ceecee6c8e
2 changed files with 3 additions and 3 deletions
|
@ -503,7 +503,7 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment {
|
|||
Algorithms.fileCopy(src, dst);
|
||||
final Intent sendIntent = new Intent();
|
||||
sendIntent.setAction(Intent.ACTION_SEND);
|
||||
sendIntent.putExtra(Intent.EXTRA_TEXT, "Favourites.gpx:\n\n\n" + GPXUtilities.asString(gpxFile, getMyApplication()));
|
||||
sendIntent.putExtra(Intent.EXTRA_TEXT, "Content of the attached file Favourites.gpx:\n\n\n" + GPXUtilities.asString(gpxFile, getMyApplication()));
|
||||
sendIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.share_fav_subject));
|
||||
sendIntent.putExtra(Intent.EXTRA_STREAM,
|
||||
FileProvider.getUriForFile(getActivity(),
|
||||
|
|
|
@ -234,14 +234,14 @@ public class NotesFragment extends OsmAndListFragment {
|
|||
if(path == shareLocationFile) {
|
||||
File fl = generateGPXForRecordings(selected);
|
||||
if(fl != null) {
|
||||
files.add(FileProvider.getUriForFile(getActivity(), "net.osmand.fileprovider", fl));
|
||||
files.add(FileProvider.getUriForFile(getActivity(), getActivity().getPackageName() + ".fileprovider", fl));
|
||||
}
|
||||
} else {
|
||||
File src = path.getFile();
|
||||
File dst = new File(getActivity().getCacheDir(), "share/"+src.getName());
|
||||
try {
|
||||
Algorithms.fileCopy(src, dst);
|
||||
files.add(FileProvider.getUriForFile(getActivity(), "net.osmand.fileprovider", dst));
|
||||
files.add(FileProvider.getUriForFile(getActivity(), getActivity().getPackageName() + ".fileprovider", dst));
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue