优化早安弹窗
authorCaisking <3449750381@qq.com>
Tue, 2 Jul 2024 10:54:16 +0000 (18:54 +0800)
committerCaisking <3449750381@qq.com>
Tue, 2 Jul 2024 10:54:16 +0000 (18:54 +0800)
code/sdk/application/wearable/service/msg_center/src/notify/sleep_notification.cpp
code/sdk/drivers/peripheral/utils/custom_utils.c

index e5faea3..72a69cd 100644 (file)
@@ -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;
index 89228b4..153ce6d 100644 (file)
@@ -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;
 }