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

This commit is contained in:
Eduardo Speroni
2021-09-08 16:07:39 -07:00
committed by Nathan Walker
parent 76499a5367
commit 37c0731a8a
+3 -1
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