unused(topic);
unused(req);
WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyCanCelFindWatchProc !");
- FindWatchViewEventListener::GetInstance().PopInterCancelMusic();
+ // FindWatchViewEventListener::GetInstance().PopInterCancelMusic();
if (FindWatchViewEventListener::GetInstance().GetFindWatchNotifyFlag() == true) {
NotificationManager::GetInstance()->StopNotify();
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-03-25 17:33:47
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-18 18:02:00
+ * @LastEditTime: 2024-10-22 10:23:38
* @FilePath: /FD230/code/sdk/application/wearable/service/msg_center/src/notify/findwatch_notification.cpp
* @details:实现查找手表的功能一般需要手表和智能手机之间的配合,通常是通过手机上的应用(App)或其他设备发送指令给手表,触发手表的查找功能。
* 以下是基本的实现步骤:
#ifdef SUPPORT_BLE_SERVICE
setFindWatchFlag(2); // 表示已找到手表
#endif
- FindWatchRingPlayStop();
+ // FindWatchRingPlayStop();
NotificationManager::GetInstance()->StopNotify();
SetFindWatchNotifyFlag(false);
// ResumeScreenBrightness();
#ifdef SUPPORT_BLE_SERVICE
setFindWatchFlag(2); // 表示已找到手表
#endif
- FindWatchRingPlayStop();
+ // FindWatchRingPlayStop();
NotificationManager::GetInstance()->StopNotify();
SetFindWatchNotifyFlag(false);
// ResumeScreenBrightness();
*/
int FindWatchViewEventListener::FindWatchRingPlayStart(const char *path)
{
+ FindWatchRingPlayStop(); // 如果playerCtr上音频资源没被释放,先释放
FindWatchRingPlayerInit(((path == nullptr) ? RingMusicName : path));
FindWatchRingPlayerStat();
return OHOS_SUCCESS;
FindWatchGroupView = nullptr;
}
+ FindWatchViewEventListener::GetInstance().FindWatchRingPlayStop();
FindWatchViewEventListener::GetInstance().ResumeScreenBrightness();
FindWatchViewEventListener::GetInstance().FindWatch_StopTimer();
}