Fix unlock transition double offset nested tasks

Use parent-based position to prevent nested tasks being offsetted
unexpectedly with screen-based position when performing unlock
transition.

Fix: 278282153
Test: http://recall/-/fLARJNt42LVxc3tt86SneW/b9gvDwL12TaDaLEkH4tUCS
Change-Id: Ib95230742a52e0a9d6b2b1f791a11eec628b179b
This commit is contained in:
Jerry Chang
2023-04-19 11:34:21 +00:00
parent 50135efb7e
commit 60f1fb663c

View File

@@ -791,7 +791,7 @@ class KeyguardUnlockAnimationController @Inject constructor(
// Translate up from the bottom.
surfaceBehindMatrix.setTranslate(
surfaceBehindRemoteAnimationTarget.screenSpaceBounds.left.toFloat(),
surfaceBehindRemoteAnimationTarget.localBounds.left.toFloat(),
surfaceHeight * SURFACE_BEHIND_START_TRANSLATION_Y * (1f - amount)
)