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

Commit b43d6a30 authored by Erik's avatar Erik
Browse files

b/3215774 Fix scrollMode notifications

When transitioning from a fling to a touch the mode was being set
to idle instead of ending up in scroll. This corrects the
notifications to get sent in the correct order.

Change-Id: Ideed6e4064b2be62788307f4232015fa88e101b4
parent 8c62c1d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2542,7 +2542,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                        mTouchMode = TOUCH_MODE_SCROLL;
                        mMotionCorrection = 0;
                        motionPosition = findMotionRow(y);
                        reportScrollStateChange(OnScrollListener.SCROLL_STATE_TOUCH_SCROLL);
                        mFlingRunnable.flywheelTouch();
                    }
                }
@@ -2968,6 +2967,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                } else {
                    endFling();
                    mTouchMode = TOUCH_MODE_SCROLL;
                    reportScrollStateChange(OnScrollListener.SCROLL_STATE_TOUCH_SCROLL);
                }
            }
        };