Skip to content

Commit

Permalink
Update ThemedReactContext.java
Browse files Browse the repository at this point in the history
Add file input to WebView facebook#12807 facebook#12807
  • Loading branch information
deepyu authored Jul 25, 2018
1 parent cac61b3 commit bc9fd7f
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import android.app.Activity;
import android.content.Context;

import com.facebook.react.bridge.ActivityEventListener;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.LifecycleEventListener;
Expand Down Expand Up @@ -46,6 +47,16 @@ public void removeLifecycleEventListener(LifecycleEventListener listener) {
mReactApplicationContext.removeLifecycleEventListener(listener);
}

@Override
public void addActivityEventListener(ActivityEventListener listener) {
mReactApplicationContext.addActivityEventListener(listener);
}

@Override
public void removeActivityEventListener(ActivityEventListener listener) {
mReactApplicationContext.removeActivityEventListener(listener);
}

@Override
public boolean hasCurrentActivity() {
return mReactApplicationContext.hasCurrentActivity();
Expand Down

0 comments on commit bc9fd7f

Please sign in to comment.