|
@@ -119,6 +119,8 @@ public class RNFetchBlob extends ReactContextBaseJavaModule {
|
119
|
119
|
|
120
|
120
|
// Set flag to give temporary permission to external app to use FileProvider
|
121
|
121
|
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
|
122
|
+ // All the activity to be opened outside of an activity
|
|
123
|
+ intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
122
|
124
|
|
123
|
125
|
// Validate that the device can open the file
|
124
|
126
|
PackageManager pm = getCurrentActivity().getPackageManager();
|