Skip to content

Commit

Permalink
Merge pull request #291 from pawelzwronek/patch-1
Browse files Browse the repository at this point in the history
Fix for unable to print opened file
  • Loading branch information
pwlin committed May 5, 2020
2 parents caa1d50 + 93dadbb commit 3eb2bc7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -126,7 +126,7 @@ private void _open(String fileArg, String contentType, Boolean openWithDefault,
Context context = cordova.getActivity().getApplicationContext();
Uri path = FileProvider.getUriForFile(context, cordova.getActivity().getPackageName() + ".provider", file);
intent.setDataAndType(path, contentType);
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_ACTIVITY_NO_HISTORY);
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);

}

Expand Down

0 comments on commit 3eb2bc7

Please sign in to comment.