Merge "Fix stray AOD animation" into sc-dev am: b01c33a788

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

Change-Id: Ia45897000f9ffc00e98b97f6747454795f21dcc8
This commit is contained in:
Beth Thibodeau
2021-06-22 18:24:01 +00:00
committed by Automerger Merge Worker

View File

@@ -660,15 +660,11 @@ class MediaHierarchyManager @Inject constructor(
return true
}
if (statusbarState == StatusBarState.KEYGUARD) {
if (currentLocation == LOCATION_LOCKSCREEN &&
previousLocation == LOCATION_QS ||
(currentLocation == LOCATION_QS &&
previousLocation == LOCATION_LOCKSCREEN)) {
// We're always fading from lockscreen to keyguard in situations where the player
// is already fully hidden
return false
}
if (statusbarState == StatusBarState.KEYGUARD && (currentLocation == LOCATION_LOCKSCREEN ||
previousLocation == LOCATION_LOCKSCREEN)) {
// We're always fading from lockscreen to keyguard in situations where the player
// is already fully hidden
return false
}
return mediaFrame.isShownNotFaded || animator.isRunning || animationPending
}