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

Commit d571e893 authored by Jerry Chang's avatar Jerry Chang Committed by Android (Google) Code Review
Browse files

Merge "Fix wrong surface positioning when animating a split pair to home" into udc-dev

parents 30022f14 7e51edd8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1472,13 +1472,13 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
                    RemoteAnimationTarget target = appTargets[i];
                    SurfaceProperties builder = transaction.forSurface(target.leash);

                    if (target.localBounds != null) {
                        tmpPos.set(target.localBounds.left, target.localBounds.top);
                    if (target.screenSpaceBounds != null) {
                        tmpPos.set(target.screenSpaceBounds.left, target.screenSpaceBounds.top);
                    } else {
                        tmpPos.set(target.position.x, target.position.y);
                    }

                    final Rect crop = new Rect(target.screenSpaceBounds);
                    final Rect crop = new Rect(target.localBounds);
                    crop.offsetTo(0, 0);
                    if (target.mode == MODE_CLOSING) {
                        tmpRect.set(target.screenSpaceBounds);