From 5ba99f58b1e90a6faaf5e84d713e10cf0323ac96 Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Fri, 13 Sep 2013 12:23:20 -0700 Subject: Fix vertical scroll computation in NumberPicker BUG: 8692209 Change-Id: I3f0a36abde7987a72d1470307c55db9b70cb5ab2 --- core/java/android/widget/NumberPicker.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/java/android') diff --git a/core/java/android/widget/NumberPicker.java b/core/java/android/widget/NumberPicker.java index 19cc3c2..e4956dd 100644 --- a/core/java/android/widget/NumberPicker.java +++ b/core/java/android/widget/NumberPicker.java @@ -1099,6 +1099,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; } -- cgit v1.1