From 7fa4b7583df5e79b7b141a4de56719fe64814969 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Tue, 2 Jul 2024 18:54:16 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E6=97=A9=E5=AE=89=E5=BC=B9?= =?utf8?q?=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../src/notify/sleep_notification.cpp | 26 ++++++++++++++++++- .../drivers/peripheral/utils/custom_utils.c | 1 - 2 files changed, 25 insertions(+), 2 deletions(-) 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; } -- 2.17.1