From: Caisking Date: Tue, 6 Jan 2026 07:25:12 +0000 (+0800) Subject: 删除音乐更新 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=30788570c997630a600e184dd38a6d34e634e8d4;p=mirrors%2FFD230.git 删除音乐更新 --- diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp index 93a1e3a2d..6ffaf7e0b 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp @@ -326,19 +326,16 @@ extern "C" { AlarmClockEventData unuse; WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmCallBackProcB"); -#if 0 +#if 1 // 记录当前时间 time_t now = time(nullptr); struct tm *localTime = localtime(&now); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Current time - Hour: %d, Minute: %d", localTime->tm_hour, localTime->tm_min); WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Posting next day update event"); - #endif GraphicService::GetInstance()->PostGraphicEvent(std::bind(AlarmTimerEventPublish, TOPIC_EVENT_NEXTDAY_UPDATE, unuse)); - // AlarmTimerEventPublish(TOPIC_EVENT_NEXTDAY_UPDATE, unuse); - // 重置nextday闹钟 SetZeroAlarm(); } @@ -348,10 +345,6 @@ extern "C" AlarmClockEventData unuse; WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "on_time_CallBackProc invoked"); AlarmTimerEventPublish(TOPIC_EVENT_ON_TIME, unuse); - // GraphicService::GetInstance()->PostGraphicEvent( - // std::bind(AlarmTimerEventPublish, TOPIC_EVENT_ON_TIME, unuse)); - - // AlarmTimerEventPublish(TOPIC_EVENT_ON_TIME, unuse); } void AlarmScan(void *arg) @@ -434,7 +427,6 @@ extern "C" HandleAlarmOnTime(&curTime); HandleSleepReminder(&curTime); - HandleMusicUpdate(); // 以下弹窗被控制 if (HandleCanShowDialog()) @@ -660,27 +652,6 @@ extern "C" } } - // 音乐更新 - void HandleMusicUpdate() - { - int16_t curviewid = OHOS::NativeAbility::GetInstance().GetCurSliceId(); - if (curviewid != VIEW_MAIN && OHOS::PlayersView::GetInstance()) - { // 当前不在主界面且音乐界面不为空 - OHOS::UICheckBox::UICheckBoxState state = OHOS::PlayersView::GetInstance()->GetPlayerButtonState(); - if (state == OHOS::UICheckBox::UICheckBoxState::SELECTED) - { - SendMsgToUIService(UI_UPDATE_PLAYERPROCESS, 0, nullptr, 0); // 音乐进度条更新 - } - } - else if (OHOS::RecordingPlayerView::GetInstance()) - { - OHOS::UICheckBox::UICheckBoxState state = OHOS::RecordingPlayerView::GetInstance()->GetPlayerButtonState(); - if (state == OHOS::UICheckBox::UICheckBoxState::SELECTED) - { - SendMsgToUIService(UI_UPDATE_RECORDPROCESS, 0, nullptr, 0); // 录音进度条更新 - } - } - } static int32_t AlarmCreate(AlarmCtrl *alarmCtrl, AlarmCallBack callback) { diff --git a/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp index 1463e8c42..c818cdaa3 100644 --- a/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp @@ -427,17 +427,13 @@ // SendMsgToUIService(UI_UPDATE_GOAL, 0, nullptr, 0); printf("sport end\n"); #endif - #if defined(BOARD_W9) - printf("******nextday is begin******\r\n"); - BPModel::GetInstance()->CleanBPData(); - printf("w9 nextday is end******\r\n"); - #endif + } void MsgCenterNotifyONtimeProc(const Topic topic, Request* req) { unused(req); AlarmClockEventData* time=(AlarmClockEventData*)req->data; - #ifdef SUPPORT_CYWEE_SERVICE +#ifdef SUPPORT_CYWEE_SERVICE cywee_save_data(); //暂时没有这个函数