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

Commit 84c5ade8 authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Fix vertical scroll computation in NumberPicker" into klp-dev

parents 09804e41 5ba99f58
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1098,6 +1098,16 @@ public class NumberPicker extends LinearLayout {
        }
    }

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

    @Override
    public int computeVerticalScrollRange() {
        return mSelectorIndices.length * mSelectorElementHeight;
    }

    @Override
    public int getSolidColor() {
        return mSolidColor;