Merge "Fix stray AOD animation" into sc-dev

This commit is contained in:
Beth Thibodeau
2021-06-22 18:19:15 +00:00
committed by Android (Google) Code Review

View File

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