浏览代码

button_theme GetHashCode fix

/main
xingwei.zhu 6 年前
当前提交
d610f5b6
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 8
      Runtime/material/button_theme.cs

8
Runtime/material/button_theme.cs


hashCode = (hashCode * 397) ^ this.padding.GetHashCode();
hashCode = (hashCode * 397) ^ this.shape.GetHashCode();
hashCode = (hashCode * 397) ^ this.alignedDropdown.GetHashCode();
hashCode = (hashCode * 397) ^ this._buttonColor?.GetHashCode() ?? 1;
hashCode = (hashCode * 397) ^ this._disabledColor?.GetHashCode() ?? 1;
hashCode = (hashCode * 397) ^ this._highlightColor?.GetHashCode() ?? 1;
hashCode = (hashCode * 397) ^ this._splashColor?.GetHashCode() ?? 1;
hashCode = (hashCode * 397) ^ (this._buttonColor != null ? this._buttonColor.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (this._disabledColor != null ? this._disabledColor.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (this._highlightColor != null ? this._highlightColor.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (this._splashColor != null ? this._splashColor.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ this.colorScheme.GetHashCode();
hashCode = (hashCode * 397) ^ this._materialTapTargetSize.GetHashCode();
return hashCode;

正在加载...
取消
保存