From ceecee6c8e2b2f8d98bb1d09cf267b0427d5f51e Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 3 Aug 2016 17:13:54 +0200 Subject: [PATCH] Fix #2863 --- .../src/net/osmand/plus/activities/FavoritesTreeFragment.java | 2 +- OsmAnd/src/net/osmand/plus/audionotes/NotesFragment.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java b/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java index 026b10786e..b9666d328b 100644 --- a/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java @@ -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(), diff --git a/OsmAnd/src/net/osmand/plus/audionotes/NotesFragment.java b/OsmAnd/src/net/osmand/plus/audionotes/NotesFragment.java index 147502fe4c..07f8765c09 100644 --- a/OsmAnd/src/net/osmand/plus/audionotes/NotesFragment.java +++ b/OsmAnd/src/net/osmand/plus/audionotes/NotesFragment.java @@ -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(); }