From: penglei <1624952103@qq.com> Date: Tue, 10 Sep 2024 08:32:47 +0000 (+0800) Subject: 修复黑曜表盘天气图标显示错误BUG X-Git-Tag: release_V1.2.70_20241020_135402~485^2~7^2~9 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=ce0ee4dd9d69b8eed266c0df84c320bb75b33350;p=mirrors%2FFD230.git 修复黑曜表盘天气图标显示错误BUG --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/main/src/dial/DialModelWeather.cpp b/code/sdk/application/wearable/fd230app/nativeui/main/src/dial/DialModelWeather.cpp index adade5b93..d549ea367 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/main/src/dial/DialModelWeather.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/main/src/dial/DialModelWeather.cpp @@ -28,7 +28,7 @@ namespace OHOS /*表盘更新天气Icon*/ void DialModelWeather::UpdateWeather(int16_t Weather) { - Weather_ = static_cast(Weather); + Weather_ = static_cast(Weather - 1); if (onChangeListener_ != nullptr) { onChangeListener_->OnDialFloatDataUpdate(DialDataType::DATA_TYPE_WEATHER, Weather_); diff --git a/tools/dial_converter_tool/instance/114/obsidianrhythm.xml b/tools/dial_converter_tool/instance/114/obsidianrhythm.xml index d1b19b504..24516a07e 100644 --- a/tools/dial_converter_tool/instance/114/obsidianrhythm.xml +++ b/tools/dial_converter_tool/instance/114/obsidianrhythm.xml @@ -11,24 +11,23 @@ - + - - + - + - +