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

Commit 65650acd authored by Louis Pullen-Freilich's avatar Louis Pullen-Freilich Committed by Android (Google) Code Review
Browse files

Merge "Adds FlingRunnable to dark-greylist"

parents 7de59d53 f0955ac7
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -442,8 +442,10 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te

    /**
     * Handles one frame of a fling
     *
     * To interrupt a fling early you should use smoothScrollBy(0,0) instead
     */
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    private FlingRunnable mFlingRunnable;

    /**
@@ -4679,7 +4681,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
            mScroller = new OverScroller(getContext());
        }

        @UnsupportedAppUsage
        // Use AbsListView#fling(int) instead
        @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
        void start(int initialVelocity) {
            int initialY = initialVelocity < 0 ? Integer.MAX_VALUE : 0;
            mLastFlingY = initialY;
@@ -4757,7 +4760,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
            postOnAnimation(this);
        }

        @UnsupportedAppUsage
        // To interrupt a fling early you should use smoothScrollBy(0,0) instead
        @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
        void endFling() {
            mTouchMode = TOUCH_MODE_REST;