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

Commit cef137ef authored by Andrew Cole's avatar Andrew Cole Committed by Android (Google) Code Review
Browse files

Merge "Display Cutout Error" into main

parents ccad0e79 911464cc
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1392,10 +1392,6 @@ public final class DisplayCutout {

    private static Rect computeSafeInsets(int displayW, int displayH, Insets waterFallInsets,
            Rect[] bounds) {
        if (displayW == displayH) {
            throw new UnsupportedOperationException("not implemented: display=" + displayW + "x"
                    + displayH + " bounding rects=" + Arrays.toString(bounds));
        }

        int leftInset = Math.max(waterFallInsets.left, findCutoutInsetForSide(
                displayW, displayH, bounds[BOUNDS_POSITION_LEFT], Gravity.LEFT));