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

Commit 66d92f81 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Remove an unnecessary animation.

When the notification panel is full-width (small devices
like phones) we can just leave the icons showing all the
time, which saves a little CPU during the
performance-critical shade expand operation.

On sw600dp devices we continue to use DISABLE_SYSTEM_INFO to
smoothly hide the status bar when the notification panel
appears (and show it when the panel is dismissed).

Bug: 6555172
Change-Id: I59a1226549dd1e51c375c3972b47079c1ee856b0
parent 913bf804
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -167,6 +167,7 @@ public class PhoneStatusBar extends BaseStatusBar {
    int mNotificationPanelMarginBottomPx, mNotificationPanelMarginLeftPx;
    int mNotificationPanelGravity;
    int mNotificationPanelMinHeight;
    boolean mNotificationPanelIsFullScreenWidth;

    // top bar
    View mClearButton;
@@ -350,9 +351,11 @@ public class PhoneStatusBar extends BaseStatusBar {
                return true;
            }
        });
        mNotificationPanelIsFullScreenWidth =
            (mNotificationPanel.getLayoutParams().width == ViewGroup.LayoutParams.MATCH_PARENT);
        mNotificationPanel.setSystemUiVisibility(
                  View.STATUS_BAR_DISABLE_NOTIFICATION_TICKER
                | View.STATUS_BAR_DISABLE_SYSTEM_INFO);
                | (mNotificationPanelIsFullScreenWidth ? 0 : View.STATUS_BAR_DISABLE_SYSTEM_INFO));

        if (!ActivityManager.isHighEndGfx(mDisplay)) {
            mStatusBarWindow.setBackground(null);