Fix stray AOD animation

Both QS and QQS transition to lockscreen with a fade now, so we
never need to animate in that case

Fixes: 190018579
Test: manual
Change-Id: I0bdf8140326525930181a969093b627a30658050
This commit is contained in:
Beth Thibodeau
2021-06-17 17:21:55 -04:00
parent 100b0929b7
commit 1564e02c5f

View File

@@ -663,15 +663,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
}