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

Commit 2a3606ba authored by Selim Cinek's avatar Selim Cinek Committed by Android Git Automerger
Browse files

am 2b81c8ef: Merge "Simplified maxPanelHeight logic." into lmp-preview-dev

* commit '2b81c8ef66cb046d96a950c5cf93cfb9015f4e40':
  Simplified maxPanelHeight logic.
parents a2d14541 45474056
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;
    }