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

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

Merge "Reseting scrollposition to 0 when going to keyguard" into mnc-dev

parents dc4c4198 b24e0a90
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -487,6 +487,7 @@ public class NotificationPanelView extends PanelView implements
        mStatusBar.dismissPopups();
        mNotificationStackScroller.setOverScrollAmount(0f, true /* onTop */, false /* animate */,
                true /* cancelAnimators */);
        mNotificationStackScroller.resetScrollPosition();
    }

    public void closeQs() {
+5 −0
Original line number Diff line number Diff line
@@ -2230,6 +2230,11 @@ public class NotificationStackScrollLayout extends ViewGroup
        }
    }

    public void resetScrollPosition() {
        mScroller.abortAnimation();
        mOwnScrollY = 0;
    }

    private void setIsExpanded(boolean isExpanded) {
        boolean changed = isExpanded != mIsExpanded;
        mIsExpanded = isExpanded;