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

Commit 60f1fb66 authored by Jerry Chang's avatar Jerry Chang
Browse files

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
parent 50135efb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
            )