From fbabaa4b4b0bb6e52cb875870326699f2e37a737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BA=B7=E5=BA=B7?= Date: Tue, 27 Sep 2022 15:12:38 +0800 Subject: [PATCH] =?UTF-8?q?fixed=2019fcc83=20from=20https://gitee.com/liao?= =?UTF-8?q?kk/notification=5Fdistributed=5Fnotification=5Fservice/pulls/60?= =?UTF-8?q?5=20=E5=AA=92=E4=BD=93=E6=8E=A5=E5=8F=A3=E5=BA=9F=E5=BC=83?= =?UTF-8?q?=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖康康 --- services/ans/src/reminder_data_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ans/src/reminder_data_manager.cpp b/services/ans/src/reminder_data_manager.cpp index bb36b715b..3c2fbfce4 100644 --- a/services/ans/src/reminder_data_manager.cpp +++ b/services/ans/src/reminder_data_manager.cpp @@ -1118,7 +1118,7 @@ void ReminderDataManager::PlaySoundAndVibration(const sptr &rem ANSR_LOGD("uri:%{public}s", uri.c_str()); soundPlayer_->SetSource(uri); soundPlayer_->SetLooping(true); - soundPlayer_->Prepare(); + soundPlayer_->PrepareAsync(); soundPlayer_->Play(); SetAlertingReminder(reminder); } -- Gitee