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 2016-03-05 20:30:24 -08:00 committed by Facebook Github Bot 8
parent ebf5842fe6
commit ae11449516
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/**