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

Commit 7f326c9d authored by Shawn Lin's avatar Shawn Lin Committed by Automerger Merge Worker
Browse files

Merge "Fix cts test failure of EnsureBarContrastTest" am: 528a63d7 am: 02896e98

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1930821

Change-Id: Iba13295d9d2b4609620eae5dca8ab86562ce5f6d
parents 27475331 02896e98
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -1515,11 +1515,15 @@ public class DisplayPolicy {
                    statusBarBottom);
        }

        sTmpRect.set(windowFrames.mFrame);
        sTmpRect.intersect(displayFrames.mDisplayCutoutSafe);
        sTmpRect.top = windowFrames.mFrame.top; // Ignore top display cutout inset
        sTmpRect.bottom = statusBarBottom; // Use collapsed status bar size
        contentFrame.set(sTmpRect);
        final InsetsState state = displayFrames.mInsetsState;
        sTmpRect.set(displayFrames.mDisplayCutoutSafe);
        // The status bar content can extend into regular display cutout insets but not
        // waterfall insets.
        sTmpRect.top = Math.max(state.getDisplayCutout().getWaterfallInsets().top, 0);

        contentFrame.set(windowFrames.mFrame);
        contentFrame.intersect(sTmpRect);
        contentFrame.bottom = statusBarBottom; // Use collapsed status bar size
    }

    private int layoutNavigationBar(DisplayFrames displayFrames, Rect contentFrame) {