am 2b7ed31f: am fe3376b4: Fix NPE in quick settings tiles.
* commit '2b7ed31f8b851a588db7c9acdae8a60b35940fe3':
Fix NPE in quick settings tiles.
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 @@
}
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 @@
mSettingsPanel.setQuickSettings(mQS);
}
mQS.setService(this);
+ mQS.setBar(mStatusBarView);
mQS.setup(mNetworkController, mBluetoothController, mBatteryController,
mLocationController);
} else {