From: luozheng <1732036298@qq.com> Date: Thu, 3 Oct 2024 07:31:11 +0000 (+0800) Subject: 解决录音播放按钮更新慢问题 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=537447f7a1ead09880f4fee48e6fb374ece50949;p=mirrors%2FFD230.git 解决录音播放按钮更新慢问题 --- 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 8b98d97fa..ff254eb5c 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp @@ -345,6 +345,10 @@ namespace OHOS isStopAndReset = true; SetRecordingPlayButtonState(false); SetCircleProgress(0); + if (RecordingPlayerView::GetInstance() != nullptr) + { + RecordingPlayerView::GetInstance()->SetPlayerButtonState(UICheckBox::UNSELECTED); + } } AudioManager::GetInstance().DeactivateAudioInterrupt(interrupt); return OHOS_SUCCESS; @@ -361,6 +365,10 @@ namespace OHOS { SetRecordingPlayButtonState(false); SetCircleProgress(0); + if (RecordingPlayerView::GetInstance() != nullptr) + { + RecordingPlayerView::GetInstance()->SetPlayerButtonState(UICheckBox::UNSELECTED); + } } AudioManager::GetInstance().DeactivateAudioInterrupt(interrupt); return OHOS_SUCCESS;