Преглед на файлове

Merge pull request #459 from jrapala/removeDupedAddFlags

Fix #458 - Remove duped FLAG_ACTIVITY_NEW_TASK
Travis Nuttall преди 5 години
родител
ревизия
ffc372e6e7
No account linked to committer's email address
променени са 1 файла, в които са добавени 0 реда и са изтрити 2 реда
  1. 0
    2
      android/src/main/java/com/RNFetchBlob/RNFetchBlob.java

+ 0
- 2
android/src/main/java/com/RNFetchBlob/RNFetchBlob.java Целия файл

@@ -121,8 +121,6 @@ public class RNFetchBlob extends ReactContextBaseJavaModule {
121 121
                  // All the activity to be opened outside of an activity
122 122
                 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
123 123
 
124
-                // All the activity to be opened outside of an activity
125
-                intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
126 124
                 // Validate that the device can open the file
127 125
                 PackageManager pm = getCurrentActivity().getPackageManager();
128 126
                 if (intent.resolveActivity(pm) != null) {