From d765a41ee2d217d4caf4878816cd8ada3b491806 Mon Sep 17 00:00:00 2001 From: Alex D <23186152+AlexMiniApps@users.noreply.github.com> Date: Fri, 10 Jul 2020 12:44:46 +0300 Subject: [PATCH 1/4] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 3081de2..5bbbe7c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ +# Fork purposes +Fixing the issue [#282](https://github.com/pwlin/cordova-plugin-file-opener2/issues/282) + +#### Will be removed after issue will be fixed + +--- + # A File Opener Plugin for Cordova (The Original Version) [![Latest Stable Version](https://img.shields.io/npm/v/cordova-plugin-file-opener2.svg)](https://www.npmjs.com/package/cordova-plugin-file-opener2) [![Total Downloads](https://img.shields.io/npm/dt/cordova-plugin-file-opener2.svg)](https://npm-stat.com/charts.html?package=cordova-plugin-file-opener2) From 89bb6969d9b38434058ac796dd4aa6427fa3c80e Mon Sep 17 00:00:00 2001 From: Alex D <23186152+AlexMiniApps@users.noreply.github.com> Date: Fri, 10 Jul 2020 12:52:39 +0300 Subject: [PATCH 2/4] Update plugin.xml --- plugin.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.xml b/plugin.xml index 4cbb5ec..1b1a635 100644 --- a/plugin.xml +++ b/plugin.xml @@ -27,7 +27,7 @@ - + From dfd1009e3ed0a4e33c648ce3d0c850b4dc12a9ef Mon Sep 17 00:00:00 2001 From: Alex D <23186152+AlexMiniApps@users.noreply.github.com> Date: Fri, 10 Jul 2020 12:54:01 +0300 Subject: [PATCH 3/4] Update FileOpener2.java --- .../github/pwlin/cordova/plugins/fileopener2/FileOpener2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java b/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java index 3f2182d..399eb19 100644 --- a/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java +++ b/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java @@ -116,7 +116,7 @@ public class FileOpener2 extends CordovaPlugin { path = Uri.fromFile(file); } else { Context context = cordova.getActivity().getApplicationContext(); - path = FileProvider.getUriForFile(context, cordova.getActivity().getPackageName() + ".provider", file); + path = FileProvider.getUriForFile(context, cordova.getActivity().getPackageName() + ".fileOpener2.provider", file); } intent.setDataAndType(path, contentType); intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_ACTIVITY_NEW_TASK); @@ -124,7 +124,7 @@ public class FileOpener2 extends CordovaPlugin { } else { intent = new Intent(Intent.ACTION_VIEW); Context context = cordova.getActivity().getApplicationContext(); - Uri path = FileProvider.getUriForFile(context, cordova.getActivity().getPackageName() + ".provider", file); + Uri path = FileProvider.getUriForFile(context, cordova.getActivity().getPackageName() + ".fileOpener2.provider", file); intent.setDataAndType(path, contentType); intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); From b443c8443c57a627b7c8a6541dc8b5c935c653c4 Mon Sep 17 00:00:00 2001 From: Alex D <23186152+AlexMiniApps@users.noreply.github.com> Date: Sat, 11 Jul 2020 11:13:44 +0300 Subject: [PATCH 4/4] Update README.md --- README.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/README.md b/README.md index 5bbbe7c..3081de2 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,3 @@ -# Fork purposes -Fixing the issue [#282](https://github.com/pwlin/cordova-plugin-file-opener2/issues/282) - -#### Will be removed after issue will be fixed - ---- - # A File Opener Plugin for Cordova (The Original Version) [![Latest Stable Version](https://img.shields.io/npm/v/cordova-plugin-file-opener2.svg)](https://www.npmjs.com/package/cordova-plugin-file-opener2) [![Total Downloads](https://img.shields.io/npm/dt/cordova-plugin-file-opener2.svg)](https://npm-stat.com/charts.html?package=cordova-plugin-file-opener2)