datashare

Signed-off-by: yanghui <yanghui152@huawei.com>
This commit is contained in:
yanghui 2024-11-21 11:49:33 +08:00
parent 2ffaa5057e
commit 0053e6ef4f
4 changed files with 5 additions and 6 deletions

View File

@ -101,7 +101,7 @@ bool WifiDataShareHelperUtils::CheckIfSettingsDataReady()
std::shared_ptr<DataShare::DataShareHelper> WifiDataShareHelperUtils::WifiCreateDataShareHelper(bool onlySettingsData)
{
if (!CheckIfSettingsDataReady()) {
WIFI_LOGE("%{public}s datashare not ready", __func__);
WIFI_LOGE("%{public}s datashare not ready.", __func__);
return nullptr;
}

View File

@ -130,8 +130,8 @@ private:
std::shared_ptr<DataShare::DataShareHelper> WifiCreateDataShareHelper(bool onlySettingsData = false);
void ClearResources(std::shared_ptr<DataShare::DataShareHelper> operatrPtr,
std::shared_ptr<DataShare::DataShareResultSet> result);
bool IsDataMgrServiceActive();
bool isDataShareReady_ = false;
};

View File

@ -738,9 +738,9 @@ void CesEventSubscriber::OnReceiveDataShareReadyEvent(const OHOS::EventFwk::Comm
{
const auto &action = eventData.GetWant().GetAction();
WIFI_LOGI("OnReceiveDataShareReadyEvent action[%{public}s]", action.c_str());
if (WifiManager::GetInstance.GetWifiEventSubscriberManager()) {
WifiManager::GetInstance.GetWifiEventSubscriberManager()->AccessDataShare();
WifiManager::GetInstance.GetWifiEventSubscriberManager()->RegisterLocationEvent();
if (WifiManager::GetInstance().GetWifiEventSubscriberManager()) {
WifiManager::GetInstance().GetWifiEventSubscriberManager()->AccessDataShare();
WifiManager::GetInstance().GetWifiEventSubscriberManager()->RegisterLocationEvent();
}
}

View File

@ -155,7 +155,6 @@ private:
private:
uint32_t cesTimerId{0};
uint32_t notificationTimerId{0};
uint32_t accessDatashareTimerId{0};
uint32_t networkStateChangeTimerId{0};
uint32_t wifiScanChangeTimerId{0};
std::mutex cesEventMutex;