From: Caisking <3449750381@qq.com> Date: Tue, 2 Jul 2024 10:54:16 +0000 (+0800) Subject: 优化早安弹窗 X-Git-Tag: release_V1.2.70_20241020_135402~893 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=7fa4b7583df5e79b7b141a4de56719fe64814969;p=mirrors%2FFD230.git 优化早安弹窗 --- diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/sleep_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/sleep_notification.cpp index e5faea3d0..72a69cdee 100644 --- a/code/sdk/application/wearable/service/msg_center/src/notify/sleep_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/sleep_notification.cpp @@ -140,7 +140,7 @@ namespace OHOS } sleeptitle->SetPosition(83, 60, 300, 35); sleeptitle->SetText(titleStr.c_str()); - sleeptitle->SetStyle(STYLE_TEXT_FONT, 40); + sleeptitle->SetStyle(STYLE_TEXT_FONT, 30); sleeptitle->SetLineBreakMode(UILabel::LINE_BREAK_ELLIPSIS); sleeptitle->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER); sleeptitle->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 40); @@ -243,6 +243,30 @@ namespace OHOS delete sleepbutton; sleepbutton = nullptr; + delete alarmtitle; + alarmtitle = nullptr; + + delete backimage; + backimage = nullptr; + + delete sunnyicon; + sunnyicon = nullptr; + + delete alarmicon; + alarmicon = nullptr; + + delete nowlabel; + nowlabel = nullptr; + + delete walklabel; + walklabel = nullptr; + + delete closebutton; + closebutton = nullptr; + + delete nopbutton; + nopbutton = nullptr; + RootView::GetInstance()->Remove(SleepGroupView); delete SleepGroupView; SleepGroupView = nullptr; diff --git a/code/sdk/drivers/peripheral/utils/custom_utils.c b/code/sdk/drivers/peripheral/utils/custom_utils.c index 89228b44a..153ce6d88 100644 --- a/code/sdk/drivers/peripheral/utils/custom_utils.c +++ b/code/sdk/drivers/peripheral/utils/custom_utils.c @@ -404,7 +404,6 @@ errcode_t uapi_get_timestampe_ms(uint32_t *tm) return ERRCODE_FAIL; } *tm = (uint32_t)(tv.tv_sec*1000 + tv.tv_usec/1000 ); - printf("time is %d\r\n", *tm ); return ERRCODE_SUCC; }