浏览代码

fix bug: potential null reference error when App goes from back to front and native calls _handleViewMetricsChanged before the window is initialized

/main
xingwei.zhu 4 年前
当前提交
bfc3d31f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      com.unity.uiwidgets/Runtime/engine/UIWidgetsPanel.cs

4
com.unity.uiwidgets/Runtime/engine/UIWidgetsPanel.cs


const int mouseButtonNum = 3;
void _handleViewMetricsChanged(string method, List<JSONNode> args) {
this._windowAdapter.onViewMetricsChanged();
this._displayMetrics.onViewMetricsChanged();
this._windowAdapte?.onViewMetricsChanged();
this._displayMetrics?.onViewMetricsChanged();
}
protected virtual void InitWindowAdapter() {

正在加载...
取消
保存