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

Commit 5b87b8c5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Avoid using starting bounds of open transitions" into tm-qpr-dev

parents f715efca 926a7624
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -141,8 +141,10 @@ public class RemoteAnimationTargetCompat {
        final int mode = change.getMode();

        t.reparent(leash, info.getRootLeash());
        t.setPosition(leash, change.getStartAbsBounds().left - info.getRootOffset().x,
                change.getStartAbsBounds().top - info.getRootOffset().y);
        final Rect absBounds =
                (mode == TRANSIT_OPEN) ? change.getEndAbsBounds() : change.getStartAbsBounds();
        t.setPosition(leash, absBounds.left - info.getRootOffset().x,
                absBounds.top - info.getRootOffset().y);

        // Put all the OPEN/SHOW on top
        if (mode == TRANSIT_OPEN || mode == TRANSIT_TO_FRONT) {