Loading libs/WindowManager/Shell/src/com/android/wm/shell/transition/Transitions.java +14 −4 Original line number Diff line number Diff line Loading @@ -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)) { Loading @@ -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; } Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/transition/Transitions.java +14 −4 Original line number Diff line number Diff line Loading @@ -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)) { Loading @@ -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; } Loading