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

Commit 7f67d720 authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

am 8ac0d137: am 564c45b9: Merge "Fix number picker vertical scroll computations" into klp-dev

* commit '8ac0d137':
  Fix number picker vertical scroll computations
parents 00315e2e 8ac0d137
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -1125,13 +1125,18 @@ public class NumberPicker extends LinearLayout {
    }

    @Override
    public int computeVerticalScrollOffset() {
    protected int computeVerticalScrollOffset() {
        return mCurrentScrollOffset;
    }

    @Override
    public int computeVerticalScrollRange() {
        return mSelectorIndices.length * mSelectorElementHeight;
    protected int computeVerticalScrollRange() {
        return (mMaxValue - mMinValue + 1) * mSelectorElementHeight;
    }

    @Override
    protected int computeVerticalScrollExtent() {
        return getHeight();
    }

    @Override