修复睡眠进度条的两端为圆形
authorCaisking <3449750381@qq.com>
Wed, 28 Aug 2024 11:54:35 +0000 (19:54 +0800)
committerCaisking <3449750381@qq.com>
Wed, 28 Aug 2024 11:54:35 +0000 (19:54 +0800)
code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepView.cpp

index 23f40d3..4aca60c 100644 (file)
@@ -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<float>(SleepModel::GetInstance().get_sleep_total()) / static_cast<float>(SleepModel::GetInstance().get_sleep_goal())) * 100.0f;
             WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "value %d!", value);
             circleProgress_->SetValue(value);
+            circleProgress_->SetCapType(CAP_ROUND);
         }
 
         // 更新目标时间