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

Commit 237a7015 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where the notifications and the clock could jump

When the QS panel was expanded, the Notifications and the
clock were not positioned, leading to a jump on the next
layout when any notification came in or was swiped out.

Bug: 17315258
Change-Id: I19276054e8c0a364a452d2041c1c4af858ba32b7
parent 6380482d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -270,6 +270,7 @@ public class NotificationPanelView extends PanelView implements
        // Calculate quick setting heights.
        mQsMinExpansionHeight = mKeyguardShowing ? 0 : mHeader.getCollapsedHeight() + mQsPeekHeight;
        mQsMaxExpansionHeight = mHeader.getExpandedHeight() + mQsContainer.getHeight();
        positionClockAndNotifications();
        if (mQsExpanded) {
            if (mQsFullyExpanded) {
                mQsExpansionHeight = mQsMaxExpansionHeight;
@@ -277,7 +278,6 @@ public class NotificationPanelView extends PanelView implements
            }
        } else {
            setQsExpansion(mQsMinExpansionHeight + mLastOverscroll);
            positionClockAndNotifications();
            mNotificationStackScroller.setStackHeight(getExpandedHeight());
            updateHeader();
        }