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

Commit a0d645cb authored by Adam Powell's avatar Adam Powell
Browse files

Fix bug 2562240 and clean up scrollbar behavior

Change-Id: I551803a1c997c9d10e1d004ce14472af6090f432
parent 71106558
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -2483,16 +2483,9 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                    delta = Math.max(-(getHeight() - mPaddingBottom - mPaddingTop - 1), delta);
                }

                // Check to see if we have bumped into the scroll limit
                View motionView = getChildAt(mMotionPosition - mFirstPosition);
                int oldTop = 0;
                if (motionView != null) {
                    oldTop = motionView.getTop();
                }

                trackMotionScroll(delta, delta);
                final boolean atEnd = trackMotionScroll(delta, delta);

                if (more) {
                if (more && !atEnd) {
                    invalidate();
                    mLastFlingY = y;
                    post(this);
+1 −0
Original line number Diff line number Diff line
@@ -1022,6 +1022,7 @@ public class HorizontalScrollView extends FrameLayout {
                    onScrollChanged(x, y, oldX, oldY);
                }
            }
            awakenScrollBars();

            // Keep on drawing until the animation has finished.
            postInvalidate();
+1 −0
Original line number Diff line number Diff line
@@ -1023,6 +1023,7 @@ public class ScrollView extends FrameLayout {
                    onScrollChanged(x, y, oldX, oldY);
                }
            }
            awakenScrollBars();

            // Keep on drawing until the animation has finished.
            postInvalidate();