Bugfix: sharing a track was not adding the file(s).

While migrating to enable sharing multiple tracks a configuration option was missed.
This commit is contained in:
Dennis Guse
2019-11-29 22:36:31 +01:00
parent 193e5eccbb
commit 8cb01a1027
@@ -89,13 +89,13 @@ public class IntentUtils {
uris.add(uriAndMime.first); uris.add(uriAndMime.first);
mime = uriAndMime.second; mime = uriAndMime.second;
} }
return new Intent(action) return new Intent(action)
.putExtra(Intent.EXTRA_SUBJECT, context.getString(R.string.share_track_subject))
.putExtra(Intent.EXTRA_TEXT, context.getString(R.string.share_track_share_file_body, trackDescription))
.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris)
.setType(mime) .setType(mime)
.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); .setAction(Intent.ACTION_SEND_MULTIPLE)
.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris)
.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
.putExtra(Intent.EXTRA_SUBJECT, context.getString(R.string.share_track_subject))
.putExtra(Intent.EXTRA_TEXT, context.getString(R.string.share_track_share_file_body, trackDescription));
} }
public static void showCoordinateOnMap(Context context, Waypoint waypoint) { public static void showCoordinateOnMap(Context context, Waypoint waypoint) {