Skip to content

Commit

Permalink
fix: android sharing a single file (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-r-m authored Mar 22, 2021
1 parent 5c98794 commit cccfca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/java/cl/json/social/ShareIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public void open(ReadableMap options) throws ActivityNotFoundException {
this.fileShare = getFileShare(options);
if (this.fileShare.isFile()) {
Uri uriFile = this.fileShare.getURI();
this.getIntent().setDataAndType(uriFile, this.fileShare.getType());
this.getIntent().setType(this.fileShare.getType());
this.getIntent().putExtra(Intent.EXTRA_STREAM, uriFile);
this.getIntent().addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
if (!TextUtils.isEmpty(message)) {
Expand Down

0 comments on commit cccfca7

Please sign in to comment.