Skip to content

Commit ffc372e

Browse files
authored
Merge pull request #459 from jrapala/removeDupedAddFlags
Fix #458 - Remove duped FLAG_ACTIVITY_NEW_TASK
2 parents b25baab + 66692b6 commit ffc372e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ public void actionViewIntent(String path, String mime, final Promise promise) {
121121
// All the activity to be opened outside of an activity
122122
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
123123

124-
// All the activity to be opened outside of an activity
125-
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
126124
// Validate that the device can open the file
127125
PackageManager pm = getCurrentActivity().getPackageManager();
128126
if (intent.resolveActivity(pm) != null) {

0 commit comments

Comments
 (0)