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

Commit 9b30a74e authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix CTS

Test: WindowInsetsTest
Change-Id: Ic2754959375c8f3e07390d9562880713113eb2cf
Fixes: 123045035
parent 0857c584
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -387,7 +387,8 @@ public final class WindowInsets {
     */
    @NonNull
    public WindowInsets consumeDisplayCutout() {
        return new WindowInsets(mTypeInsetsMap, mTypeMaxInsetsMap,
        return new WindowInsets(mSystemWindowInsetsConsumed ? null : mTypeInsetsMap,
                mStableInsetsConsumed ? null : mTypeMaxInsetsMap,
                mIsRound, mAlwaysConsumeNavBar,
                null /* displayCutout */);
    }
@@ -872,7 +873,7 @@ public final class WindowInsets {
        @NonNull
        public Builder setStableInsets(@NonNull Insets stableInsets) {
            Preconditions.checkNotNull(stableInsets);
            assignCompatInsets(mTypeInsetsMap, stableInsets.toRect());
            assignCompatInsets(mTypeMaxInsetsMap, stableInsets.toRect());
            mStableInsetsConsumed = false;
            return this;
        }