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

Commit 620e8e59 authored by John Spurlock's avatar John Spurlock Committed by Android (Google) Code Review
Browse files

Merge "Remove obsolete optimization."

parents e3b1f454 a5baf891
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