Browse Source

Fix incorrect statement #165

Ben Hsieh 7 years ago
parent
commit
8215f072a3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/android/src/main/java/com/RNFetchBlob/RNFetchBlob.java

+ 2
- 2
src/android/src/main/java/com/RNFetchBlob/RNFetchBlob.java View File

@@ -64,11 +64,11 @@ public class RNFetchBlob extends ReactContextBaseJavaModule {
64 64
             intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
65 65
             this.getReactApplicationContext().startActivity(intent);
66 66
             ActionViewVisible = true;
67
-            final boolean triggered = false;
67
+
68 68
             final LifecycleEventListener listener = new LifecycleEventListener() {
69 69
                 @Override
70 70
                 public void onHostResume() {
71
-                    if(triggered)
71
+                    if(ActionViewVisible)
72 72
                         promise.resolve(null);
73 73
                     RCTContext.removeLifecycleEventListener(this);
74 74
                 }