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

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

Change-Id: Ibffece384649735c56390334ec5f75c0ddc246ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Tiger Huang
2022-05-09 14:45:29 +00:00
committed by Automerger Merge Worker

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);
} else {
mBackgroundInsets = Insets.NONE;