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

Commit e644b647 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

Fix a crasher in SystemUI

Change-Id: Id0e91d949518aa1c5af57ae3b9b4e72347a5bd47
parent eb031bb9
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -284,6 +284,8 @@ public class PhoneStatusBar extends StatusBar {
                mNavigationBarView = 
                    (NavigationBarView) View.inflate(context, R.layout.navigation_bar, null);

                mNavigationBarView.setEnabled((mDisabled & StatusBarManager.DISABLE_NAVIGATION) == 0);

                sb.setOnSystemUiVisibilityChangeListener(
                    new View.OnSystemUiVisibilityChangeListener() {
                        @Override
@@ -1072,8 +1074,10 @@ public class PhoneStatusBar extends StatusBar {
                mHandler.sendEmptyMessage(MSG_CLOSE_RECENTS_PANEL);
            }

            if (mNavigationBarView != null) {
                mNavigationBarView.setEnabled((state & StatusBarManager.DISABLE_NAVIGATION) == 0);
            }
        }

        if ((diff & StatusBarManager.DISABLE_NOTIFICATION_ICONS) != 0) {
            if ((state & StatusBarManager.DISABLE_NOTIFICATION_ICONS) != 0) {