Fix bottom split disappeared after unlock

Make sure to offset tasks properly in y axis when performing unlock
animation.

Bug: 278282153
Test: manual
Change-Id: I11f421db3c3a8be0d525b5005fb7d0cb36f63c62
This commit is contained in:
Jerry Chang
2023-04-21 04:30:42 +00:00
parent 550d555428
commit 78170821b6

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.