From 5ef525ab2f870a03fffe7398adcc24eaa7d2823c Mon Sep 17 00:00:00 2001 From: zhangyao Date: Tue, 20 Feb 2024 13:07:46 +0000 Subject: [PATCH] =?UTF-8?q?Description:=20=E4=BC=A0=E9=80=92=E5=BC=80?= =?UTF-8?q?=E7=9B=96=E4=BA=AE=E5=B1=8F=E5=8E=9F=E5=9B=A0=20IssueNo:https:/?= =?UTF-8?q?/gitee.com/openharmony/window=5Fwindow=5Fmanager/issues/I92HHV?= =?UTF-8?q?=20Feature=20or=20Bugfix:=20Feature=20Binary=20Source:No=20Sign?= =?UTF-8?q?ed-off-by:=20zhangyao=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- window_scene/session_manager/src/screen_session_manager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/window_scene/session_manager/src/screen_session_manager.cpp b/window_scene/session_manager/src/screen_session_manager.cpp index bdc4891c51..74572e82b5 100644 --- a/window_scene/session_manager/src/screen_session_manager.cpp +++ b/window_scene/session_manager/src/screen_session_manager.cpp @@ -990,9 +990,8 @@ bool ScreenSessionManager::SetScreenPowerForAll(ScreenPowerState state, PowerSta break; } else { needScreenOnWhenKeyguardNotify_ = true; - auto task = [this]() { - SetScreenPower(ScreenPowerStatus::POWER_STATUS_ON, - PowerStateChangeReason::STATE_CHANGE_REASON_INIT); + auto task = [this, reason]() { + SetScreenPower(ScreenPowerStatus::POWER_STATUS_ON, reason); needScreenOnWhenKeyguardNotify_ = false; keyguardDrawnDone_ = true; WLOGFI("SetScreenPowerForAll keyguardDrawnDone_ is true step 2"); -- Gitee