窗口沉浸式能力增强:补充设置状态栏标志位

Signed-off-by: zhangminrui <zhangminrui1@huawei.com>
This commit is contained in:
zhangminrui 2024-04-20 11:16:28 +08:00
parent 37946d3974
commit ba01aa8451
3 changed files with 6 additions and 6 deletions

View File

@ -238,7 +238,7 @@ enum class SystemBarSettingFlag : uint32_t {
COLOR_SETTING = 1,
ENABLE_SETTING = 1 << 1,
ALL_SETTING = 0b11
}
};
/**
* @brief Used to map from WMError to WmErrorCode.

View File

@ -838,13 +838,13 @@ static void UpdateSystemBarProperties(std::map<WindowType, SystemBarProperty>& s
}
if (flag.enableFlag == true) {
systemBarProperties[type].settingFlag_ =
static_cast<SystemBarSettingFlag>(static_cast<uint32_t>(property.settingFlag_)) |
static_cast<SystemBarSettingFlag>(SystemBarSettingFlag::ENABLE_SETTING);
static_cast<SystemBarSettingFlag>(static_cast<uint32_t>(property.settingFlag_) |
static_cast<uint32_t>(SystemBarSettingFlag::ENABLE_SETTING));
}
if (flag.backgroundColorFlag == true || flag.contentColorFlag == true) {
systemBarProperties[type].settingFlag_ =
static_cast<SystemBarSettingFlag>(static_cast<uint32_t>(property.settingFlag_)) |
static_cast<SystemBarSettingFlag>(SystemBarSettingFlag::COLOR_SETTING);
static_cast<SystemBarSettingFlag>(static_cast<uint32_t>(property.settingFlag_) |
static_cast<uint32_t>(SystemBarSettingFlag::COLOR_SETTING));
}
WLOGI("[NAPI]SystemBarProperty type:%{public}u enable:%{public}u bgColor:%{public}x settingFlag:%{public}u",
type, systemBarProperties[type].enable_, systemBarProperties[type].backgroundColor_,

View File

@ -215,7 +215,7 @@ enum class SystemBarSettingFlag : uint32_t {
COLOR_SETTING = 1,
ENABLE_SETTING = 1 << 1,
ALL_SETTING = 0b11
}
};
/**
* @brief Used to map from WMError to WmErrorCode.