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

Commit 537421be authored by Siva Velusamy's avatar Siva Velusamy
Browse files

PhoneStatusBar: Fix NPE while accessing quick settings.

Fixes Bug 7137026

Change-Id: Id156cf8ebb1a31202015a167185a6588283128f8
parent e136a728
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -318,8 +318,6 @@ public class PhoneStatusBar extends BaseStatusBar {
            mStatusBarWindow.setBackground(null);
            mNotificationPanel.setBackground(new FastColorDrawable(context.getResources().getColor(
                    R.color.notification_panel_solid_background)));
            mSettingsPanel.setBackground(new FastColorDrawable(context.getResources().getColor(
                    R.color.notification_panel_solid_background)));
        }
        if (ENABLE_INTRUDERS) {
            mIntruderAlertView = (IntruderAlertView) View.inflate(context, R.layout.intruder_alert, null);
@@ -436,6 +434,11 @@ public class PhoneStatusBar extends BaseStatusBar {
        mSettingsPanel.setup(mNetworkController, mBluetoothController, mBatteryController,
                mLocationController);

        if (!ActivityManager.isHighEndGfx()) {
            mSettingsPanel.setBackground(new FastColorDrawable(context.getResources().getColor(
                    R.color.notification_panel_solid_background)));
        }

//        final ImageView wimaxRSSI =
//                (ImageView)sb.findViewById(R.id.wimax_signal);
//        if (wimaxRSSI != null) {