From 64afcdaf53e4466e140412e26c1431085f89b0a4 Mon Sep 17 00:00:00 2001 From: Tiger Huang Date: Fri, 6 May 2022 17:43:54 +0800 Subject: [PATCH] Don't clip background drawable if navigation color view is not opaque If the navigation bar color view is not opaque, we shouldn't clip the background drawable. Otherwise, the view hierarchy cannot fill surface buffer, and the un-filled area would display things previously drawn on it, which is not expected. Fix: 204834350 Test: Open a doc in Docs in split-screen, and scroll down to the end. Change-Id: I050f3fa301412b71a7ae15d60fb49853c4be161e --- core/java/com/android/internal/policy/DecorView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/com/android/internal/policy/DecorView.java b/core/java/com/android/internal/policy/DecorView.java index 1db4bbba9ad5a..ea5797d752d73 100644 --- a/core/java/com/android/internal/policy/DecorView.java +++ b/core/java/com/android/internal/policy/DecorView.java @@ -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;