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

Commit f2ecbbc3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix WindowFrameTest error."

parents 86108818 186d9dee
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -338,9 +338,12 @@ public class WindowFrameTests {

        w.mDockedResizingForTest = true;
        w.calculatePolicyCrop(policyCrop);
        // But if we are docked resizing it won't be.
        // But if we are docked resizing it won't be, however we will still be
        // shrunk to the decor frame and the display.
        final DisplayInfo displayInfo = w.getDisplayContent().getDisplayInfo();
        assertRect(policyCrop, 0, 0, 1000, 1000);
        assertRect(policyCrop, 0, 0,
                Math.min(pf.width(), displayInfo.logicalWidth),
                Math.min(pf.height(), displayInfo.logicalHeight));
    }

    private WindowStateWithTask createWindow(Task task, int width, int height) {