Skip to content

Commit 9d7657c

Browse files
vsivaAndroid (Google) Code Review
authored andcommitted
Merge "PhoneStatusBar: Fix NPE while accessing quick settings." into jb-mr1-dev
2 parents b181909 + 537421b commit 9d7657c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,6 @@ public boolean onTouch(View v, MotionEvent event) {
318318
mStatusBarWindow.setBackground(null);
319319
mNotificationPanel.setBackground(new FastColorDrawable(context.getResources().getColor(
320320
R.color.notification_panel_solid_background)));
321-
mSettingsPanel.setBackground(new FastColorDrawable(context.getResources().getColor(
322-
R.color.notification_panel_solid_background)));
323321
}
324322
if (ENABLE_INTRUDERS) {
325323
mIntruderAlertView = (IntruderAlertView) View.inflate(context, R.layout.intruder_alert, null);
@@ -436,6 +434,11 @@ public void onSizeChanged(View view, int w, int h, int oldw, int oldh) {
436434
mSettingsPanel.setup(mNetworkController, mBluetoothController, mBatteryController,
437435
mLocationController);
438436

437+
if (!ActivityManager.isHighEndGfx()) {
438+
mSettingsPanel.setBackground(new FastColorDrawable(context.getResources().getColor(
439+
R.color.notification_panel_solid_background)));
440+
}
441+
439442
// final ImageView wimaxRSSI =
440443
// (ImageView)sb.findViewById(R.id.wimax_signal);
441444
// if (wimaxRSSI != null) {

0 commit comments

Comments
 (0)