Skip to content

Commit

Permalink
fix(android): should updateExtra after create host view (#3879)
Browse files Browse the repository at this point in the history
Co-authored-by: siguangli <maxli@tencent.com>
  • Loading branch information
siguangli and siguangli2018 authored Jun 3, 2024
1 parent 64294cd commit dadf81a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ public int compare(Pair<RenderNode, Integer> o1, Pair<RenderNode, Integer> o2) {
mControllerManager.updateLayout(mClassName, mRootId, mId, mX, mY, mWidth, mHeight);
resetNodeFlag(FLAG_UPDATE_LAYOUT);
}
if (checkNodeFlag(FLAG_UPDATE_EXTRA)) {
if (checkNodeFlag(FLAG_UPDATE_EXTRA) && getHostView() != null) {
mControllerManager.updateExtra(mRootId, mId, mClassName, mExtra);
resetNodeFlag(FLAG_UPDATE_EXTRA);
}
Expand Down

0 comments on commit dadf81a

Please sign in to comment.