Skip to content

Commit e51bdd1

Browse files
author
Danh Nguyen
committed
add FLAG_ACTIVITY_NEW_TASK
1 parent fd81e46 commit e51bdd1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

android/src/main/java/com/RNFetchBlob/RNFetchBlob.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ public void actionViewIntent(String path, String mime, final Promise promise) {
119119

120120
// Set flag to give temporary permission to external app to use FileProvider
121121
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);
122124

123125
// Validate that the device can open the file
124126
PackageManager pm = getCurrentActivity().getPackageManager();

0 commit comments

Comments
 (0)