mirror of
https://gitee.com/openharmony/powermgr_power_manager
synced 2024-11-27 01:01:11 +00:00
fix: update services/native/src/power_mgr_service.cpp.
Signed-off-by: hxf233333 <huxiaofei11@huawei.com>
This commit is contained in:
parent
522d40b2ce
commit
3317316703
@ -99,6 +99,7 @@ void PowerMgrService::OnStart()
|
||||
return;
|
||||
}
|
||||
ready_ = true;
|
||||
system::SetParameter("bootevent.powermgr.ready", "true");
|
||||
POWER_HILOGI(COMP_SVC, "Add system ability success");
|
||||
}
|
||||
|
||||
@ -122,7 +123,6 @@ bool PowerMgrService::Init()
|
||||
screenOffPreController_ = std::make_shared<ScreenOffPreController>(powerStateMachine_);
|
||||
screenOffPreController_->Init();
|
||||
}
|
||||
system::SetParameter("bootevent.powermgr.ready", "true");
|
||||
POWER_HILOGI(COMP_SVC, "Init success");
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user