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

Commit 17f18817 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add null check for mNavigationBarFrame"

parents 8acbe896 a246b947
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -531,12 +531,14 @@ final class NavigationBarController {

            if (drawLegacyNavigationBarBackground != mDrawLegacyNavigationBarBackground) {
                mDrawLegacyNavigationBarBackground = drawLegacyNavigationBarBackground;
                if (mNavigationBarFrame != null) {
                    if (mDrawLegacyNavigationBarBackground) {
                        mNavigationBarFrame.setBackgroundColor(Color.BLACK);
                    } else {
                        mNavigationBarFrame.setBackground(null);
                    }
                    scheduleRelayout();
                }
                onSystemBarAppearanceChanged(mAppearance);
            }
            return drawLegacyNavigationBarBackground;