From 1f1e3ee3a616c448975b272a91de0d36c7d5760b Mon Sep 17 00:00:00 2001 From: liuzhongming Date: Tue, 14 Jan 2025 18:40:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E7=94=A8=E6=88=B7=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E5=8F=91=E5=B8=83=20Signed-off-by:=20liuzhongming=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/service/src/device_manager_service.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/service/src/device_manager_service.cpp b/services/service/src/device_manager_service.cpp index e8fa03cef..5f8e932d2 100755 --- a/services/service/src/device_manager_service.cpp +++ b/services/service/src/device_manager_service.cpp @@ -1703,6 +1703,11 @@ void DeviceManagerService::AccountCommonEventCallback(const std::string commonEv dmAccountInfo.accountId = MultipleUserConnector::GetOhosAccountId(); dmAccountInfo.accountName = MultipleUserConnector::GetOhosAccountName(); MultipleUserConnector::SetAccountInfo(currentUserId, dmAccountInfo); +#if !(defined(__LITEOS_M__) || defined(LITE_DEVICE)) +#if defined(SUPPORT_BLUETOOTH) || defined(SUPPORT_WIFI) + QueryDependsSwitchState(); +#endif // SUPPORT_BLUETOOTH SUPPORT_WIFI +#endif if (beforeUserId == -1 || currentUserId == -1) { return; } else if (beforeUserId != -1 && currentUserId != -1) { -- Gitee