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

Commit 02896e98 authored by Shawn Lin's avatar Shawn Lin Committed by Automerger Merge Worker
Browse files

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

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

Change-Id: I3e4a9ff825d3c31001c9389896d3587a630832d5
parents 734475d8 528a63d7
Loading
Loading
Loading
Loading
+9 −5
Original line number Original line Diff line number Diff line
@@ -1498,11 +1498,15 @@ public class DisplayPolicy {
                    statusBarBottom);
                    statusBarBottom);
        }
        }


        sTmpRect.set(windowFrames.mFrame);
        final InsetsState state = displayFrames.mInsetsState;
        sTmpRect.intersect(displayFrames.mDisplayCutoutSafe);
        sTmpRect.set(displayFrames.mDisplayCutoutSafe);
        sTmpRect.top = windowFrames.mFrame.top; // Ignore top display cutout inset
        // The status bar content can extend into regular display cutout insets but not
        sTmpRect.bottom = statusBarBottom; // Use collapsed status bar size
        // waterfall insets.
        contentFrame.set(sTmpRect);
        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) {
    private int layoutNavigationBar(DisplayFrames displayFrames, Rect contentFrame) {