diff options
author | Alan Viverette <alanv@google.com> | 2013-09-13 12:23:20 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2013-09-13 12:23:20 -0700 |
commit | 5ba99f58b1e90a6faaf5e84d713e10cf0323ac96 (patch) | |
tree | 50ccad66533473285e93628622ee3bfadb6ce173 /core/java/android/widget | |
parent | 14e55996722db1e74996b837c136a6e188143718 (diff) | |
download | frameworks_base-5ba99f58b1e90a6faaf5e84d713e10cf0323ac96.zip frameworks_base-5ba99f58b1e90a6faaf5e84d713e10cf0323ac96.tar.gz frameworks_base-5ba99f58b1e90a6faaf5e84d713e10cf0323ac96.tar.bz2 |
Fix vertical scroll computation in NumberPicker
BUG: 8692209
Change-Id: I3f0a36abde7987a72d1470307c55db9b70cb5ab2
Diffstat (limited to 'core/java/android/widget')
-rw-r--r-- | core/java/android/widget/NumberPicker.java | 10 |
1 files changed, 10 insertions, 0 deletions
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; } |