From 0d6c71cc3c2efc483f7988a069ec82e06b99525b Mon Sep 17 00:00:00 2001 From: Josh Tsuji Date: Tue, 15 Mar 2022 14:32:40 +0000 Subject: [PATCH] Revert "Don't collapse the panel post launch if we went back to sleep." This reverts commit 5ac67f9a18348720512d96c2df308b58159301df. Reason for revert: Found a better fix Change-Id: Ic6030fac876fc2b28931971f25ed63198697b52d --- .../android/systemui/statusbar/phone/CentralSurfaces.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfaces.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfaces.java index de2346aab2047..5642744d3390a 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfaces.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfaces.java @@ -1870,13 +1870,7 @@ public class CentralSurfaces extends CoreStartable implements if (!mPresenter.isCollapsing()) { onClosingFinished(); } - - // Collapse the panel if we're launching in fullscreen, over the lockscreen. Do not do this - // if the device has gone back to sleep - through a horrific chain of 15 or so function - // calls, instantCollapseNotificationPanel will eventually call through to - // StatusBar#wakeUpIfDozing, which will wake the device up even if it was put to sleep - // during the launch animation. - if (launchIsFullScreen && mPowerManager.isInteractive()) { + if (launchIsFullScreen) { instantCollapseNotificationPanel(); } }