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

Commit e155cb4d authored by Danesh Mondegarian's avatar Danesh Mondegarian
Browse files

NavigationBar : Only inflate once

Since the navbar now has updateResources(), there is no need to reinflate
it upon a theme change.

Change-Id: Ie4753a767a1cb45eb459ee692d16067f83cc7d23
parent a66f8cae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -485,7 +485,7 @@ public class PhoneStatusBar extends BaseStatusBar {
        try {
            boolean showNav = mWindowManagerService.hasNavigationBar();
            if (DEBUG) Slog.v(TAG, "hasNavigationBar=" + showNav);
            if (showNav && !mRecreating) {
            if (mNavigationBarView == null && showNav && !mRecreating) {
                mNavigationBarView =
                    (NavigationBarView) View.inflate(context, R.layout.navigation_bar, null);