Merge "Make sure system bars have visible background while force-showing" into tm-qpr-dev

This commit is contained in:
Jerry Chang
2022-07-07 01:59:39 +00:00
committed by Android (Google) Code Review

View File

@@ -1440,8 +1440,9 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
int size, boolean verticalBar, boolean seascape, int sideMargin, boolean animate, int size, boolean verticalBar, boolean seascape, int sideMargin, boolean animate,
boolean force, WindowInsetsController controller) { boolean force, WindowInsetsController controller) {
state.present = state.attributes.isPresent( state.present = state.attributes.isPresent(
controller.isRequestedVisible(state.attributes.insetsType), (controller.isRequestedVisible(state.attributes.insetsType)
mWindow.getAttributes().flags, force); || mLastShouldAlwaysConsumeSystemBars),
mWindow.getAttributes().flags, force);
boolean show = state.attributes.isVisible(state.present, color, boolean show = state.attributes.isVisible(state.present, color,
mWindow.getAttributes().flags, force); mWindow.getAttributes().flags, force);
boolean showView = show && !isResizing() && !mHasCaption && size > 0; boolean showView = show && !isResizing() && !mHasCaption && size > 0;