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

Commit 818c3be9 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Ricardo Cerqueira
Browse files

SystemUI: Recreate navigation bar when rebuilding the status bar

Ensure that all listeners (such as orientation change...) get properly
linked in the newly generated view, to avoid errors due to non-attached
views after applying a theme

Change-Id: I46992694844944564739ac12a8da43b6348658c9
parent 582ea70d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2463,7 +2463,11 @@ public class PhoneStatusBar extends BaseStatusBar {
        copyNotifications(notifications, mNotificationData);
        mNotificationData.clear();

        if (mNavigationBarView != null) {
            WindowManagerImpl.getDefault().removeView(mNavigationBarView);
        }
        makeStatusBarView();
        addNavigationBar();

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