浏览代码

Merge pull request #334 from UnityTech/fix_automatic_keep_alive

Fix automatic keep alive.
/main
GitHub 5 年前
当前提交
8c1dba9c
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
      Runtime/widgets/automatic_keep_alive.cs

4
Runtime/widgets/automatic_keep_alive.cs


}
else {
SchedulerBinding.instance.addPostFrameCallback(timeStamp => {
if (!this.mounted) {
return;
}
ParentDataElement childElement1 = this._getChildElement();
D.assert(childElement1 != null);
this._updateParentDataOfChild(childElement1);

}
ParentDataElement _getChildElement() {
D.assert(this.mounted);
Element element = (Element) this.context;
Element childElement = null;
element.visitChildren((Element child) => { childElement = child; });

正在加载...
取消
保存