|
@@ -195,7 +195,7 @@ public abstract class BaseReactActivity extends AppCompatActivity implements Def
|
195
|
195
|
|
196
|
196
|
// Destroy react instance manager only if there are no resumed react activities
|
197
|
197
|
BaseReactActivity activity = ContextProvider.getActivityContext();
|
198
|
|
- if (mReactInstanceManager != null && activity != null && activity.isFinishing()) {
|
|
198
|
+ if (mReactInstanceManager != null && (activity == null || activity.isFinishing())) {
|
199
|
199
|
Log.i(TAG, "Destroying ReactInstanceManager");
|
200
|
200
|
mReactInstanceManager.onDestroy();
|
201
|
201
|
} else {
|