Merge "Don't clip background drawable if navigation color view is not opaque" into tm-dev

This commit is contained in:
Tiger Huang
2022-05-09 12:47:17 +00:00
committed by Android (Google) Code Review

View File

@@ -1262,7 +1262,7 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
} }
} }
if (forceConsumingNavBar && !mDrawLegacyNavigationBarBackgroundHandled) { if (forceConsumingNavBar && !hideNavigation && !mDrawLegacyNavigationBarBackgroundHandled) {
mBackgroundInsets = Insets.of(mLastLeftInset, 0, mLastRightInset, mLastBottomInset); mBackgroundInsets = Insets.of(mLastLeftInset, 0, mLastRightInset, mLastBottomInset);
} else { } else {
mBackgroundInsets = Insets.NONE; mBackgroundInsets = Insets.NONE;