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

Commit 6b69b122 authored by Chris Banes's avatar Chris Banes Committed by Android (Google) Code Review
Browse files

Merge "Re-dispatch nested scrolls if not implemented" into nyc-dev

parents 7625a59b 61d50706
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -6749,7 +6749,8 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
    @Override
    public void onNestedScroll(View target, int dxConsumed, int dyConsumed,
            int dxUnconsumed, int dyUnconsumed) {
        // Do nothing
        // Re-dispatch up the tree by default
        dispatchNestedScroll(dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed, null);
    }

    /**
@@ -6757,7 +6758,8 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
     */
    @Override
    public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) {
        // Do nothing
        // Re-dispatch up the tree by default
        dispatchNestedPreScroll(dx, dy, consumed, null);
    }

    /**
@@ -6765,7 +6767,8 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
     */
    @Override
    public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) {
        return false;
        // Re-dispatch up the tree by default
        return dispatchNestedFling(velocityX, velocityY, consumed);
    }

    /**
@@ -6773,7 +6776,8 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
     */
    @Override
    public boolean onNestedPreFling(View target, float velocityX, float velocityY) {
        return false;
        // Re-dispatch up the tree by default
        return dispatchNestedPreFling(velocityX, velocityY);
    }

    /**