From d735f4c946cbe3c976b70cf746cdc7343d0f2a89 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Wed, 28 Aug 2024 19:54:35 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E7=9D=A1=E7=9C=A0=E8=BF=9B?= =?utf8?q?=E5=BA=A6=E6=9D=A1=E7=9A=84=E4=B8=A4=E7=AB=AF=E4=B8=BA=E5=9C=86?= =?utf8?q?=E5=BD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/sleep/src/SleepView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepView.cpp b/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepView.cpp index 23f40d376..4aca60cf4 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepView.cpp @@ -23,6 +23,7 @@ namespace OHOS { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, " SleepView::~SleepView"); ClearAll(); + g_pSleepView = nullptr; } @@ -47,6 +48,7 @@ namespace OHOS float value = (static_cast(SleepModel::GetInstance().get_sleep_total()) / static_cast(SleepModel::GetInstance().get_sleep_goal())) * 100.0f; WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "value %d!", value); circleProgress_->SetValue(value); + circleProgress_->SetCapType(CAP_ROUND); } // 更新目标时间 -- 2.17.1