Loading libs/WindowManager/Shell/src/com/android/wm/shell/transition/Transitions.java +3 −5 Original line number Diff line number Diff line Loading @@ -493,11 +493,9 @@ public class Transitions implements RemoteCallable<Transitions>, final SurfaceControl leash = change.getLeash(); final int mode = info.getChanges().get(i).getMode(); if (mode == TRANSIT_TO_FRONT && ((change.getStartAbsBounds().height() != change.getEndAbsBounds().height() || change.getStartAbsBounds().width() != change.getEndAbsBounds().width()))) { // When the window is moved to front with a different size, make sure the crop is // updated to prevent it from using the old crop. if (mode == TRANSIT_TO_FRONT) { // When the window is moved to front, make sure the crop is updated to prevent it // from using the old crop. t.setWindowCrop(leash, change.getEndAbsBounds().width(), change.getEndAbsBounds().height()); } Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/transition/Transitions.java +3 −5 Original line number Diff line number Diff line Loading @@ -493,11 +493,9 @@ public class Transitions implements RemoteCallable<Transitions>, final SurfaceControl leash = change.getLeash(); final int mode = info.getChanges().get(i).getMode(); if (mode == TRANSIT_TO_FRONT && ((change.getStartAbsBounds().height() != change.getEndAbsBounds().height() || change.getStartAbsBounds().width() != change.getEndAbsBounds().width()))) { // When the window is moved to front with a different size, make sure the crop is // updated to prevent it from using the old crop. if (mode == TRANSIT_TO_FRONT) { // When the window is moved to front, make sure the crop is updated to prevent it // from using the old crop. t.setWindowCrop(leash, change.getEndAbsBounds().width(), change.getEndAbsBounds().height()); } Loading