Skip to content

Commit

Permalink
android: Re-remove code that isn't needed for handling notifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzila committed Apr 3, 2019
1 parent 7f83918 commit 80bb867
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,6 @@ public void run() {
mainWindow.setBackgroundDrawableResource(R.color.white);
}
}, 300);

// Wait for the reactContext, then send the intent.
ReactInstanceManager mReactInstanceManager = ((ReactApplication) getApplication()).getReactNativeHost().getReactInstanceManager();
mReactInstanceManager.addReactInstanceEventListener(new ReactInstanceManager.ReactInstanceEventListener() {
public void onReactContextInitialized(ReactContext reactContext) {
reactContext.getNativeModule(IntentHandler.class).handleIntent(getIntent());
}
});
if (!mReactInstanceManager.hasStartedCreatingInitialContext()) {
// Construct it in the background
mReactInstanceManager.createReactContextInBackground();
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public void initialize() {
if (activity == null) {
NativeLogger.warn("activity not yet initialized");
}
handleIntent(getCurrentActivity().getIntent());
handleIntent(activity.getIntent());
}

@Override
Expand Down

0 comments on commit 80bb867

Please sign in to comment.