Merge "Fix bottom split disappeared after unlock" into udc-dev

This commit is contained in:
Jerry Chang
2023-04-21 12:01:24 +00:00
committed by Android (Google) Code Review

View File

@@ -792,7 +792,8 @@ class KeyguardUnlockAnimationController @Inject constructor(
// Translate up from the bottom.
surfaceBehindMatrix.setTranslate(
surfaceBehindRemoteAnimationTarget.localBounds.left.toFloat(),
surfaceHeight * SURFACE_BEHIND_START_TRANSLATION_Y * (1f - amount)
surfaceBehindRemoteAnimationTarget.localBounds.top.toFloat() +
surfaceHeight * SURFACE_BEHIND_START_TRANSLATION_Y * (1f - amount)
)
// Scale up from a point at the center-bottom of the surface.