From: luozheng <1732036298@qq.com> Date: Fri, 18 Oct 2024 08:32:42 +0000 (+0800) Subject: 解决训练界面音乐进度条不更新问题 X-Git-Tag: release_V1.2.70_20241020_135402~5^2~10 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=9ea410dfc39d70b9b107d59d34ba44a6db00a9aa;p=mirrors%2FFD230.git 解决训练界面音乐进度条不更新问题 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp b/code/sdk/application/wearable/fd230app/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp index 62e5091f3..5608a9785 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp @@ -400,6 +400,7 @@ extern "C" HandleAlarmOnTime(&curTime); HandleSleepReminder(&curTime); + HandleMusicUpdate(); //以下弹窗被控制 if (HandleCanShowDialog()) { @@ -409,7 +410,6 @@ extern "C" HandleDrinkReminder(&curTime); HandleHeartRateDetection(&curTime); - HandleMusicUpdate(); } //判断是否绑定 @@ -580,12 +580,12 @@ extern "C" 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); + 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); + SendMsgToUIService(UI_UPDATE_RECORDPROCESS, 0, nullptr, 0);//录音进度条更新 } } }