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

Commit c439009b authored by Chris Li's avatar Chris Li Committed by Android (Google) Code Review
Browse files

Merge "Do not crop activity surface in transitions setup" into main

parents b0122421 0578b727
Loading
Loading
Loading
Loading
+14 −4
Original line number Diff line number Diff line
@@ -546,9 +546,14 @@ public class Transitions implements RemoteCallable<Transitions>,
                // When the window is moved to front, make sure the crop is updated to prevent it
                // from using the old crop.
                t.setPosition(leash, change.getEndRelOffset().x, change.getEndRelOffset().y);
                if (change.getContainer() != null) {
                    // We don't want to crop on non-remotable (activity), because it can have
                    // letterbox child surface that is position at a negative position related to
                    // the activity's surface.
                    t.setWindowCrop(leash, change.getEndAbsBounds().width(),
                            change.getEndAbsBounds().height());
                }
            }

            // Don't move anything that isn't independent within its parents
            if (!TransitionInfo.isIndependent(change, info)) {
@@ -557,9 +562,14 @@ public class Transitions implements RemoteCallable<Transitions>,
                    t.setMatrix(leash, 1, 0, 0, 1);
                    t.setAlpha(leash, 1.f);
                    t.setPosition(leash, change.getEndRelOffset().x, change.getEndRelOffset().y);
                    if (change.getContainer() != null) {
                        // We don't want to crop on non-remotable (activity), because it can have
                        // letterbox child surface that is position at a negative position related
                        // to the activity's surface.
                        t.setWindowCrop(leash, change.getEndAbsBounds().width(),
                                change.getEndAbsBounds().height());
                    }
                }
                continue;
            }