Merge "Fix issue where screen off is disabled after expanding then collapsing the shade." into sc-dev am: 3d89666385 am: cc8ebcaf9d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15340719

Change-Id: I40b814898be63ca57b767b4b1eb60bc519eac644
This commit is contained in:
Josh Tsuji
2021-07-21 19:15:51 +00:00
committed by Automerger Merge Worker

View File

@@ -199,10 +199,9 @@ class UnlockedScreenOffAnimationController @Inject constructor(
// We currently draw both the light reveal scrim, and the AOD UI, in the shade. If it's
// already expanded and showing notifications/QS, the animation looks really messy. For now,
// disable it if the notification panel is expanded.
// disable it if the notification panel is not fully collapsed.
if (!this::statusBar.isInitialized ||
statusBar.notificationPanelViewController.isFullyExpanded ||
statusBar.notificationPanelViewController.isExpanding) {
!statusBar.notificationPanelViewController.isFullyCollapsed) {
return false
}