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

Commit aa402d51 authored by Selim Cinek's avatar Selim Cinek
Browse files

Simplified maxPanelHeight logic.

Bug: 14487435
Change-Id: If171758a3143b24d7a1443c4761890670d03e49a
parent 159ffdbf
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;
    }