diff --git a/services/service/src/device_manager_service.cpp b/services/service/src/device_manager_service.cpp index e8fa03cef0d30d1810db89a76ef20530b999b2ff..5f8e932d2ac631fadfa9e4abf29bb8b105ff6b4d 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) {