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

Commit a5baf891 authored by John Spurlock's avatar John Spurlock
Browse files

Remove obsolete optimization.

Reverts JB optimization I7ae978caa1f28932ee56f65484b18330a4406b80
made obsolete by I2f9b0591d44599b07bd83f03c4e09e6dd98e1448 in MR1.

Change-Id: I8a738624f9a902648e317f2eac25fd56c3b47a46
parent 8cf4e13e
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -1353,7 +1353,7 @@ public class PhoneStatusBar extends BaseStatusBar {
        }
    };

    void makeExpandedVisible(boolean revealAfterDraw) {
    void makeExpandedVisible() {
        if (SPEW) Log.d(TAG, "Make expanded visible: expanded visible=" + mExpandedVisible);
        if (mExpandedVisible) {
            return;
@@ -1376,12 +1376,6 @@ public class PhoneStatusBar extends BaseStatusBar {
        lp.height = ViewGroup.LayoutParams.MATCH_PARENT;
        mWindowManager.updateViewLayout(mStatusBarWindow, lp);

        // Updating the window layout will force an expensive traversal/redraw.
        // Kick off the reveal animation after this is complete to avoid animation latency.
        if (revealAfterDraw) {
//            mHandler.post(mStartRevealAnimation);
        }

        visibilityChanged(true);

        suspendAutohide();
@@ -1766,7 +1760,7 @@ public class PhoneStatusBar extends BaseStatusBar {
                editor.putBoolean(Prefs.SHOWN_QUICK_SETTINGS_HELP, true);
                editor.apply();

                makeExpandedVisible(true); // enforce visibility in case the shade is still animating closed
                makeExpandedVisible(); // enforce visibility in case the shade is still animating closed
                animateExpandNotificationsPanel();

                mSuppressStatusBarDrags = false;
+1 −1
Original line number Diff line number Diff line
@@ -142,7 +142,7 @@ public class PhoneStatusBarView extends PanelBar {
    @Override
    public void onPanelPeeked() {
        super.onPanelPeeked();
        mBar.makeExpandedVisible(true);
        mBar.makeExpandedVisible();
    }

    @Override