Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3d3aa71 authored by Beth Thibodeau's avatar Beth Thibodeau Committed by Automerger Merge Worker
Browse files

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

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

Change-Id: Ia45897000f9ffc00e98b97f6747454795f21dcc8
parents 2dd2407b b01c33a7
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -660,16 +660,12 @@ class MediaHierarchyManager @Inject constructor(
            return true
        }

        if (statusbarState == StatusBarState.KEYGUARD) {
            if (currentLocation == LOCATION_LOCKSCREEN &&
                previousLocation == LOCATION_QS ||
                (currentLocation == LOCATION_QS &&
        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
    }