Loading services/core/java/com/android/server/wm/TaskFragment.java +6 −1 Original line number Diff line number Diff line Loading @@ -2753,7 +2753,12 @@ class TaskFragment extends WindowContainer<WindowContainer> { if (!forceUpdate && width == mLastSurfaceSize.x && height == mLastSurfaceSize.y) { return; } if (fillsParent()) { // Rely on parent's crop. t.setCrop(mSurfaceControl, null); } else { t.setWindowCrop(mSurfaceControl, width, height); } mLastSurfaceSize.set(width, height); } Loading services/tests/wmtests/src/com/android/server/wm/TaskFragmentTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -132,8 +132,8 @@ public class TaskFragmentTest extends WindowTestsBase { final int parentSw = parentConfig.smallestScreenWidthDp; final Rect bounds = new Rect(parentBounds); bounds.inset(100, 100); mTaskFragment.setBounds(bounds); mTaskFragment.setWindowingMode(WINDOWING_MODE_MULTI_WINDOW); mTaskFragment.setBounds(bounds); // Calculate its own sw with smaller bounds in multi-window mode. assertNotEquals(parentSw, mTaskFragment.getConfiguration().smallestScreenWidthDp); Loading Loading
services/core/java/com/android/server/wm/TaskFragment.java +6 −1 Original line number Diff line number Diff line Loading @@ -2753,7 +2753,12 @@ class TaskFragment extends WindowContainer<WindowContainer> { if (!forceUpdate && width == mLastSurfaceSize.x && height == mLastSurfaceSize.y) { return; } if (fillsParent()) { // Rely on parent's crop. t.setCrop(mSurfaceControl, null); } else { t.setWindowCrop(mSurfaceControl, width, height); } mLastSurfaceSize.set(width, height); } Loading
services/tests/wmtests/src/com/android/server/wm/TaskFragmentTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -132,8 +132,8 @@ public class TaskFragmentTest extends WindowTestsBase { final int parentSw = parentConfig.smallestScreenWidthDp; final Rect bounds = new Rect(parentBounds); bounds.inset(100, 100); mTaskFragment.setBounds(bounds); mTaskFragment.setWindowingMode(WINDOWING_MODE_MULTI_WINDOW); mTaskFragment.setBounds(bounds); // Calculate its own sw with smaller bounds in multi-window mode. assertNotEquals(parentSw, mTaskFragment.getConfiguration().smallestScreenWidthDp); Loading