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

Commit 8c4e660f authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

SystemUI: always use transparent notification shade

Devices with less than 512MB of memory have a solid
black notification shade. Remove the isHighEndGfx()
check to force a transparent notification shade on
all devices.

Change-Id: I9a68a2a8b0d36685f8899f3bbed43bb6bccb47b1

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
parent f5632d7e
Loading
Loading
Loading
Loading
+0 −12
Original line number Original line Diff line number Diff line
@@ -498,11 +498,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode {
                    }
                    }
                });
                });


        if (!ActivityManager.isHighEndGfx()) {
            mStatusBarWindow.setBackground(null);
            mNotificationPanel.setBackground(new FastColorDrawable(context.getResources().getColor(
                    R.color.notification_panel_solid_background)));
        }
        if (ENABLE_HEADS_UP) {
        if (ENABLE_HEADS_UP) {
            mHeadsUpNotificationView =
            mHeadsUpNotificationView =
                    (HeadsUpNotificationView) View.inflate(context, R.layout.heads_up, null);
                    (HeadsUpNotificationView) View.inflate(context, R.layout.heads_up, null);
@@ -716,13 +711,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode {
                } else {
                } else {
                    mSettingsPanel = (SettingsPanelView) mStatusBarWindow.findViewById(R.id.settings_panel);
                    mSettingsPanel = (SettingsPanelView) mStatusBarWindow.findViewById(R.id.settings_panel);
                }
                }

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


            // wherever you find it, Quick Settings needs a container to survive
            // wherever you find it, Quick Settings needs a container to survive