Merge "Don't animate unlocked screen off if QS is expanded" into tm-dev am: c495949e13

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

Change-Id: I67b9afd383401c5c5a0919b1f8dc1d55875132aa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Beverly Tai
2022-05-10 20:30:54 +00:00
committed by Automerger Merge Worker

View File

@@ -311,9 +311,9 @@ class UnlockedScreenOffAnimationController @Inject constructor(
// We currently draw both the light reveal scrim, and the AOD UI, in the shade. If it's // 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, // already expanded and showing notifications/QS, the animation looks really messy. For now,
// disable it if the notification panel is not fully collapsed. // disable it if the notification panel is expanded.
if ((!this::mCentralSurfaces.isInitialized || if ((!this::mCentralSurfaces.isInitialized ||
!mCentralSurfaces.notificationPanelViewController.isFullyCollapsed) && mCentralSurfaces.notificationPanelViewController.isExpanded) &&
// Status bar might be expanded because we have started // Status bar might be expanded because we have started
// playing the animation already // playing the animation already
!isAnimationPlaying() !isAnimationPlaying()