Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 8215f07

Browse files
committed
Fix incorrect statement #165
1 parent c600716 commit 8215f07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ public void actionViewIntent(String path, String mime, final Promise promise) {
6464
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
6565
this.getReactApplicationContext().startActivity(intent);
6666
ActionViewVisible = true;
67-
final boolean triggered = false;
67+
6868
final LifecycleEventListener listener = new LifecycleEventListener() {
6969
@Override
7070
public void onHostResume() {
71-
if(triggered)
71+
if(ActionViewVisible)
7272
promise.resolve(null);
7373
RCTContext.removeLifecycleEventListener(this);
7474
}

0 commit comments

Comments
 (0)