add OnUserSwitched

Signed-off-by: dengxiaoyu <dengxiaoyu6@huawei.com>
This commit is contained in:
dengxiaoyu 2024-09-10 18:42:03 +08:00
parent cff2ba0a35
commit d30c0ae3b4

View File

@ -124,7 +124,7 @@ void CommonEventListener::OnUserSwitched()
DataShareManager::GetInstance().SetCurrentContinueSwitch(SwitchStatusDependency::GetInstance()
.IsContinueSwitchOn());
if (!dataShareManager.IsCurrentContinueSwitchOn()) {
if (!DataShareManager::GetInstance().IsCurrentContinueSwitchOn()) {
DMSContinueRecvMgr::GetInstance().OnContinueSwitchOff();
HILOGI("ICurrentContinueSwitch is off, %{public}d", DataShareManager::GetInstance()
.IsCurrentContinueSwitchOn());