diff --git a/ReactAndroid/src/main/java/com/facebook/react/XReactInstanceManagerImpl.java b/ReactAndroid/src/main/java/com/facebook/react/XReactInstanceManagerImpl.java index 5c8aa8b92..400af02e7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/XReactInstanceManagerImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/XReactInstanceManagerImpl.java @@ -487,7 +487,6 @@ import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JAVA_BRIDGE; } moveToBeforeResumeLifecycleState(); - mCurrentActivity = null; } /** diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java index 430e0cab7..e96dbc3ab 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java @@ -178,7 +178,6 @@ public class ReactContext extends ContextWrapper { for (LifecycleEventListener listener : mLifecycleEventListeners) { listener.onHostPause(); } - mCurrentActivity = null; } /** @@ -189,6 +188,7 @@ public class ReactContext extends ContextWrapper { for (LifecycleEventListener listener : mLifecycleEventListeners) { listener.onHostDestroy(); } + mCurrentActivity = null; } /**