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

Commit ae41fbc6 authored by Steve Kondik's avatar Steve Kondik
Browse files

systemui: Fix crash on theme change

 * Avoid NPE on theme change on devices without a navigation bar.

Change-Id: I29321e7747e7aa87f4539913b5a071f6e7d6a72d
parent fc2fb1d5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3077,7 +3077,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,

        makeStatusBarView();
        repositionNavigationBar();
        if (mNavigationBarView != null) {
            mNavigationBarView.updateResources();
        }

        // recreate StatusBarIconViews.
        for (int i = 0; i < nIcons; i++) {