From 3eef93b4dafafc79bddc0a488f1c111f95063ada Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Wed, 25 Sep 2024 09:55:20 +0800 Subject: [PATCH] =?utf8?q?#774,=E8=A7=A3=E5=86=B3=E5=BD=95=E9=9F=B3?= =?utf8?q?=E5=88=97=E8=A1=A8=EF=BC=8C=E7=82=B9=E5=87=BB=E8=BF=9B=E5=85=A5?= =?utf8?q?=E5=B0=B1=E6=98=AF=E6=92=AD=E6=94=BE=E7=8A=B6=E6=80=81=EF=BC=8C?= =?utf8?q?=E9=9C=80=E8=A6=81=E7=82=B9=E5=87=BB=E8=BF=9B=E5=8E=BB=E6=98=AF?= =?utf8?q?=E6=9A=82=E5=81=9C=E7=8A=B6=E6=80=81=E4=B8=8D=E8=83=BD=E8=87=AA?= =?utf8?q?=E5=8A=A8=E6=92=AD=E6=94=BEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/record/src/RecordingModel.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp index 6815da00e..9aa2e6ea2 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp @@ -165,6 +165,8 @@ namespace OHOS // 点击录音列表中录音播放 int RecordingModel::RecordingListOnClickPlay(void) { + SetRecordingPlayerUri(directory + GetCurrentPlayRecordingName() + ".mp3"); +#if 0 WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingModel::RecordingListOnClickPlay"); int ret; int32_t playerState; @@ -180,6 +182,7 @@ namespace OHOS state = p_RecordingPlayerView->GetPlayerButtonState(); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "state %d,line = %d", state, __LINE__); + if (state == UICheckBox::UICheckBoxState::UNSELECTED) { p_RecordingPlayerView->SetPlayerButtonState(UICheckBox::UICheckBoxState::SELECTED); @@ -207,6 +210,7 @@ namespace OHOS } RecordingPlayerStat(); } +#endif return OHOS_SUCCESS; } @@ -216,7 +220,7 @@ namespace OHOS /* ------------------------------ 每次新的播放进度都设为0 ------------------------------ */ SetCircleProgress(0); // 0:进度100% RecordingPlayerView *p_RecordingPlayerView = RecordingPlayerView::GetInstance(); - if(p_RecordingPlayerView !=nullptr) + if (p_RecordingPlayerView != nullptr) { p_RecordingPlayerView->SetPlayerProgressBarValue(CircleProgress); } -- 2.17.1