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

Commit 2a8093e5 authored by Jon Miranda's avatar Jon Miranda
Browse files

Use screenSpaceBounds to position the target window for recents mw animation.

Verified window is moving as expected using winscope.

Note: Position is off when launching non-center task.

Bug: 159171509
Change-Id: Ib11ed7df9a877348d76543279203f9bfc25f7829
parent 4de12a24
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -141,7 +141,8 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy {
     */
    public void setPreview(RemoteAnimationTargetCompat runningTarget) {
        setPreviewBounds(runningTarget.screenSpaceBounds, runningTarget.contentInsets);
        mRunningTargetWindowPosition.set(runningTarget.position.x, runningTarget.position.y);
        mRunningTargetWindowPosition.set(runningTarget.screenSpaceBounds.left,
                runningTarget.screenSpaceBounds.top);
    }

    /**