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

Commit e41472bd authored by Tiger Huang's avatar Tiger Huang Committed by Automerger Merge Worker
Browse files

Merge "Only draw legacy nav bar background when it is visible" into udc-qpr-dev am: e4ef060e

parents e04c34cc e4ef060e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1160,7 +1160,9 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
                    mForceWindowDrawsBarBackgrounds, requestedVisibleTypes);
            boolean oldDrawLegacy = mDrawLegacyNavigationBarBackground;
            mDrawLegacyNavigationBarBackground =
                    (mWindow.getAttributes().flags & FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) == 0;
                    ((requestedVisibleTypes | mLastForceConsumingTypes)
                            & WindowInsets.Type.navigationBars()) != 0
                    && (mWindow.getAttributes().flags & FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) == 0;
            if (oldDrawLegacy != mDrawLegacyNavigationBarBackground) {
                mDrawLegacyNavigationBarBackgroundHandled =
                        mWindow.onDrawLegacyNavigationBarBackgroundChanged(