Skip to content

Commit

Permalink
fix(share): set type to */* if no mine type can be found (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-mendoza committed May 18, 2021
1 parent a6cd1ad commit 40d4baa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ public void share(PluginCall call) {
intent.setTypeAndNormalize("text/plain");
} else if (url != null && isFileUrl(url)) {
String type = getMimeType(url);
if (type == null) {
type = "*/*";
}
intent.setType(type);
Uri fileUrl = FileProvider.getUriForFile(
getActivity(),
Expand Down

0 comments on commit 40d4baa

Please sign in to comment.