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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user