From 1ca7022229ebb8f75b5c3e359fe7194b16286d7c Mon Sep 17 00:00:00 2001 From: zhangyao Date: Wed, 21 Feb 2024 03:31:39 +0000 Subject: [PATCH] =?UTF-8?q?fixed=20c8fb27e=20from=20https://gitee.com/clou?= =?UTF-8?q?d=5Fnine/window=5Fwindow=5Fmanager/pulls/5111=20Description:=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D300ms=E5=BB=B6=E6=97=B6=E4=B8=8A=E7=94=B5?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=8F=AF=E8=83=BD=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E4=B8=8A=E4=B8=8B=E7=94=B5=E7=B4=8A=E4=B9=B1=20IssueNo:=20http?= =?UTF-8?q?s://gitee.com/openharmony/window=5Fwindow=5Fmanager/issues/I92B?= =?UTF-8?q?TZ=20Feature=20or=20Bugfix:=20Feature=20Binary=20Source:No=20Si?= =?UTF-8?q?gned-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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/window_scene/session_manager/src/screen_session_manager.cpp b/window_scene/session_manager/src/screen_session_manager.cpp index c1fb2d3048..9e310540e3 100644 --- a/window_scene/session_manager/src/screen_session_manager.cpp +++ b/window_scene/session_manager/src/screen_session_manager.cpp @@ -1004,6 +1004,10 @@ bool ScreenSessionManager::SetScreenPower(ScreenPowerStatus status, PowerStateCh return false; } + if (status == ScreenPowerStatus::POWER_STATUS_OFF) { + taskScheduler_->RemoveTask("screenOnTask"); + } + if (foldScreenController_ != nullptr) { rsInterface_.SetScreenPowerStatus(foldScreenController_->GetCurrentScreenId(), status); } else { -- Gitee