Skip to content

Commit 3eb2bc7

Browse files
authored
Merge pull request #291 from pawelzwronek/patch-1
Fix for unable to print opened file
2 parents caa1d50 + 93dadbb commit 3eb2bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private void _open(String fileArg, String contentType, Boolean openWithDefault,
126126
Context context = cordova.getActivity().getApplicationContext();
127127
Uri path = FileProvider.getUriForFile(context, cordova.getActivity().getPackageName() + ".provider", file);
128128
intent.setDataAndType(path, contentType);
129-
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_ACTIVITY_NO_HISTORY);
129+
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
130130

131131
}
132132

0 commit comments

Comments
 (0)