Explorar el Código

Fix #458 - Remove duped FLAG_ACTIVITY_NEW_TASK

Juliette Rapala hace 5 años
padre
commit
66692b6e9b
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0
    2
      android/src/main/java/com/RNFetchBlob/RNFetchBlob.java

+ 0
- 2
android/src/main/java/com/RNFetchBlob/RNFetchBlob.java Ver fichero

121
                  // All the activity to be opened outside of an activity
121
                  // All the activity to be opened outside of an activity
122
                 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
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
                 // Validate that the device can open the file
124
                 // Validate that the device can open the file
127
                 PackageManager pm = getCurrentActivity().getPackageManager();
125
                 PackageManager pm = getCurrentActivity().getPackageManager();
128
                 if (intent.resolveActivity(pm) != null) {
126
                 if (intent.resolveActivity(pm) != null) {