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

Commit 77aeceff authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix opening of shade when open via button or programatically."

parents 70014bdc a0aa297e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -637,13 +637,14 @@ public class CarStatusBar extends StatusBar implements
        }

        Rect rect = mNotificationView.getClipBounds();
        if (rect != null) {
        if (rect != null && rect.bottom != to) {
            float from = rect.bottom;
            animate(from, to, velocity, isClosing);
            return;
        }

        // We will only be here if the shade is being opened programmatically.
        // We will only be here if the shade is being opened programmatically or via button when
        // height of the layout was not calculated.
        ViewTreeObserver notificationTreeObserver = mNotificationView.getViewTreeObserver();
        notificationTreeObserver.addOnGlobalLayoutListener(
                new ViewTreeObserver.OnGlobalLayoutListener() {