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

Commit b176e375 authored by Ricardo Cerqueira's avatar 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 25ed6c6f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2398,7 +2398,11 @@ public class PhoneStatusBar extends StatusBar {
        copyNotifications(notifications, mNotificationData);
        mNotificationData.clear();

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

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