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

Commit 91b43d50 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "sysui: refactor for extensibility."

parents c6706252 84b4561f
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ public class NotificationStackScrollLayout extends ViewGroup
    private boolean mPanelTracking;
    private boolean mExpandingNotification;
    private boolean mExpandedInThisMotion;
    private boolean mScrollingEnabled;
    protected boolean mScrollingEnabled;
    protected DismissView mDismissView;
    protected EmptyShadeView mEmptyShadeView;
    private boolean mDismissAllInProgress;
@@ -1182,7 +1182,7 @@ public class NotificationStackScrollLayout extends ViewGroup
        if (!isScrollingEnabled()) {
            return false;
        }
        if (ev.getY() < mQsContainer.getBottom()) {
        if (isInsideQsContainer(ev)) {
            return false;
        }
        mForcedScroll = null;
@@ -1312,6 +1312,10 @@ public class NotificationStackScrollLayout extends ViewGroup
        return true;
    }

    protected boolean isInsideQsContainer(MotionEvent ev) {
        return ev.getY() < mQsContainer.getBottom();
    }

    private void onOverScrollFling(boolean open, int initialVelocity) {
        if (mOverscrollTopChangedListener != null) {
            mOverscrollTopChangedListener.flingTopOverscroll(initialVelocity, open);