Procházet zdrojové kódy

Fix #458 - Remove duped FLAG_ACTIVITY_NEW_TASK

Juliette Rapala před 5 roky
rodič
revize
66692b6e9b

+ 0
- 2
android/src/main/java/com/RNFetchBlob/RNFetchBlob.java Zobrazit soubor

@@ -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) {