in ReactContext, de-reference the Activity in onPause() instead of onHostDestroy()

Reviewed By: andreicoman11

Differential Revision: D3004340

fb-gh-sync-id: a408cb64565e18069a291b415b1ad9d429ba8f45
shipit-source-id: a408cb64565e18069a291b415b1ad9d429ba8f45
This commit is contained in:
Aaron Chiu authored and Facebook Github Bot 8 committed 2016-03-05 20:31:22 -08:00
1 parent ebf5842fe6
commit ae11449516
1 file changed
+1 -1
@@ -156,6 +156,7 @@ public class ReactContext extends ContextWrapper {
for (LifecycleEventListener listener : mLifecycleEventListeners) {
listener.onHostPause();
}
mCurrentActivity = null;
}
/**
@@ -166,7 +167,6 @@ public class ReactContext extends ContextWrapper {
for (LifecycleEventListener listener : mLifecycleEventListeners) {
listener.onHostDestroy();
}
mCurrentActivity = null;
}
/**