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

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

Reseting scrollposition to 0 when going to keyguard

This avoids some jank when going to the keyguard from
the locked shade.

Change-Id: I21dcd8a7cbb2aa98659061d29670b2663f1e7fc9
parent 560e64d3
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -482,6 +482,7 @@ public class NotificationPanelView extends PanelView implements
        mStatusBar.dismissPopups();
        mStatusBar.dismissPopups();
        mNotificationStackScroller.setOverScrollAmount(0f, true /* onTop */, false /* animate */,
        mNotificationStackScroller.setOverScrollAmount(0f, true /* onTop */, false /* animate */,
                true /* cancelAnimators */);
                true /* cancelAnimators */);
        mNotificationStackScroller.resetScrollPosition();
    }
    }


    public void closeQs() {
    public void closeQs() {
+5 −0
Original line number Original line 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) {
    private void setIsExpanded(boolean isExpanded) {
        boolean changed = isExpanded != mIsExpanded;
        boolean changed = isExpanded != mIsExpanded;
        mIsExpanded = isExpanded;
        mIsExpanded = isExpanded;