diff --git a/patches/foundation/communication/bluetooth_service/bt_service.patch b/patches/foundation/communication/bluetooth_service/bt_service.patch index 518bf69bd523cfbe665fe4f03cafd01fcec2bdf7..68f6b4f6eb443453fcc2e1ac349160a1ed6bb01a 100644 --- a/patches/foundation/communication/bluetooth_service/bt_service.patch +++ b/patches/foundation/communication/bluetooth_service/bt_service.patch @@ -575,6 +575,14 @@ index fdecbc1..3542ca1 100644 AvrcTgConnectManager *cnManager = AvrcTgConnectManager::GetInstance(); AvrcTgStateMachineManager *smManager = AvrcTgStateMachineManager::GetInstance(); utility::Message msg(AVRC_TG_SM_EVENT_INVALID); +@@ -1958,6 +2054,7 @@ void AvrcTgProfile::ProcessChannelEventConnectCfmEvt( + if (result == BT_SUCCESS) { + cnManager->SetConnectId(rawAddr, connectId); + cnManager->SetActiveDevice(rawAddr.GetAddress()); ++ myObserver_->setActiveDevice(rawAddr); + msg.what_ = AVRC_TG_SM_EVENT_TO_CONNECTED_STATE; + smManager->SendMessageToControlStateMachine(rawAddr, msg); + @@ -1968,6 +2064,13 @@ void AvrcTgProfile::ProcessChannelEventConnectCfmEvt( } cnManager->DeleteDisconnectedDevice(rawAddr.GetAddress());