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

Commit 45474056 authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

Merge "Simplified maxPanelHeight logic." into lmp-preview-dev

parents 4c6debb7 aa402d51
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -698,11 +698,9 @@ public class NotificationPanelView extends PanelView implements
    @Override
    protected int getMaxPanelHeight() {
        // TODO: Figure out transition for collapsing when QS is open, adjust height here.
        int maxPanelHeight = super.getMaxPanelHeight();
        int emptyBottomMargin = mNotificationStackScroller.getEmptyBottomMargin();
        emptyBottomMargin += mStackScrollerContainer.getHeight()
                - mNotificationStackScroller.getHeight();
        int maxHeight = maxPanelHeight - emptyBottomMargin - mTopPaddingAdjustment;
        int maxHeight = mNotificationStackScroller.getHeight() - emptyBottomMargin
                - mTopPaddingAdjustment;
        maxHeight = Math.max(maxHeight, mStatusBarMinHeight);
        return maxHeight;
    }