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

Commit f6e78f2d authored by Eghosa Ewansiha-Vlachavas's avatar Eghosa Ewansiha-Vlachavas Committed by Android (Google) Code Review
Browse files

Merge "Fix TaskTests#testBoundsOnModeChangeFreeformToFullscreen on large screens" into main

parents e0f83b09 59313cc0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -684,9 +684,7 @@ public class TaskTests extends WindowTestsBase {
                .setWindowingMode(WINDOWING_MODE_FREEFORM).build();
        Task task = rootTask.getBottomMostTask();
        task.getRootActivity().setOrientation(SCREEN_ORIENTATION_UNSPECIFIED);
        DisplayInfo info = new DisplayInfo();
        display.mDisplay.getDisplayInfo(info);
        final Rect fullScreenBounds = new Rect(0, 0, info.logicalWidth, info.logicalHeight);
        final Rect fullScreenBounds = new Rect(display.getBounds());
        final Rect freeformBounds = new Rect(fullScreenBounds);
        freeformBounds.inset((int) (freeformBounds.width() * 0.2),
                (int) (freeformBounds.height() * 0.2));