From fe3376b41aa48b6894afad9b977170bc658a6ac1 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Tue, 16 Oct 2012 19:54:02 -0400 Subject: Fix NPE in quick settings tiles. Bug: 7360759 Change-Id: I5b000e063baa1b7e2dddaa25be5b9bcdafa1a974 --- .../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'packages/SystemUI/src') diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index 64bce22..d4ccf96 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -541,8 +541,6 @@ public class PhoneStatusBar extends BaseStatusBar { } if (mSettingsPanel != null) { - mSettingsPanel.setBar(mStatusBarView); - if (!ActivityManager.isHighEndGfx()) { mSettingsPanel.setBackground(new FastColorDrawable(context.getResources().getColor( R.color.notification_panel_solid_background))); @@ -563,6 +561,7 @@ public class PhoneStatusBar extends BaseStatusBar { mSettingsPanel.setQuickSettings(mQS); } mQS.setService(this); + mQS.setBar(mStatusBarView); mQS.setup(mNetworkController, mBluetoothController, mBatteryController, mLocationController); } else { -- cgit v1.1