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

Commit 911464cc authored by Andrew Cole's avatar Andrew Cole
Browse files

Display Cutout Error

Removing a historical unsupported exception for square display cutouts.
This was causing falkiness in tests for the notifications team.

Flag: None
Test: SystemUIGoogleScreenshotTests
Bug: 329438697
Change-Id: I545b4b7531312ce4f5b0bdc2902002d96fbeca43
parent 12753147
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));