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

Commit 59313cc0 authored by Eghosa Ewansiha-Vlachavas's avatar Eghosa Ewansiha-Vlachavas
Browse files

Fix TaskTests#testBoundsOnModeChangeFreeformToFullscreen on large screens

Flag: NONE(test)
Test: atest WmTests:TaskTests#testBoundsOnModeChangeFreeformToFullscreen
Fixes: 329398339
Change-Id: I295aeeef74fa8b2569dc87e54b477860ac1f9166
parent 51710b69
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));