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

Commit 17c5df85 authored by Tiger Huang's avatar Tiger Huang Committed by Android (Google) Code Review
Browse files

Merge "Fix WindowInsets#insetInsets" into main

parents 238c473c 141d489b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1290,7 +1290,8 @@ public final class WindowInsets {
        int newTop = Math.max(0, insets.top - top);
        int newRight = Math.max(0, insets.right - right);
        int newBottom = Math.max(0, insets.bottom - bottom);
        if (newLeft == left && newTop == top && newRight == right && newBottom == bottom) {
        if (newLeft == insets.left && newTop == insets.top
                && newRight == insets.right && newBottom == insets.bottom) {
            return insets;
        }
        return Insets.of(newLeft, newTop, newRight, newBottom);