mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(android): onSaveInstanceState should not crash when no rootView is set (#9447)
This commit is contained in:
committed by
Nathan Walker
parent
76499a5367
commit
37c0731a8a
@@ -1110,7 +1110,9 @@ class ActivityCallbacksImplementation implements AndroidActivityCallbacks {
|
|||||||
rootView._saveFragmentsState();
|
rootView._saveFragmentsState();
|
||||||
}
|
}
|
||||||
|
|
||||||
outState.putInt(ROOT_VIEW_ID_EXTRA, rootView._domId);
|
if (rootView) {
|
||||||
|
outState.putInt(ROOT_VIEW_ID_EXTRA, rootView._domId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@profile
|
@profile
|
||||||
|
|||||||
Reference in New Issue
Block a user