fix(android): onSaveInstanceState should not crash when no rootView is set (#9447)

This commit is contained in:
Eduardo Speroni
2021-08-11 14:41:24 -03:00
committed by Nathan Walker
parent 76499a5367
commit 37c0731a8a

View File

@@ -1110,7 +1110,9 @@ class ActivityCallbacksImplementation implements AndroidActivityCallbacks {
rootView._saveFragmentsState();
}
outState.putInt(ROOT_VIEW_ID_EXTRA, rootView._domId);
if (rootView) {
outState.putInt(ROOT_VIEW_ID_EXTRA, rootView._domId);
}
}
@profile