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

Commit 151037c5 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed flickering in panel overscroll

Bug: 14487435
Change-Id: Id4fe18231397a1bbce42c5baba0b2c4cad955c56
parent 9c80964d
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -700,8 +700,6 @@ public class NotificationPanelView extends PanelView implements
        // TODO: Figure out transition for collapsing when QS is open, adjust height here.
        // TODO: Figure out transition for collapsing when QS is open, adjust height here.
        int maxPanelHeight = super.getMaxPanelHeight();
        int maxPanelHeight = super.getMaxPanelHeight();
        int emptyBottomMargin = mNotificationStackScroller.getEmptyBottomMargin();
        int emptyBottomMargin = mNotificationStackScroller.getEmptyBottomMargin();
        emptyBottomMargin = (int) Math.max(0,
                emptyBottomMargin - mNotificationStackScroller.getCurrentOverScrollAmount(true));
        emptyBottomMargin += mStackScrollerContainer.getHeight()
        emptyBottomMargin += mStackScrollerContainer.getHeight()
                - mNotificationStackScroller.getHeight();
                - mNotificationStackScroller.getHeight();
        int maxHeight = maxPanelHeight - emptyBottomMargin - mTopPaddingAdjustment;
        int maxHeight = maxPanelHeight - emptyBottomMargin - mTopPaddingAdjustment;