summaryrefslogtreecommitdiffstats
path: root/core/java/android/view
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2011-01-27 14:16:55 -0800
committerAdam Powell <adamp@google.com>2011-01-27 14:25:44 -0800
commit3ba6774263db28bdfaa88bfdc4f2dfb37d6ce26a (patch)
treebee03f5b762ac87a0ab135c40b1e7991e544c0e0 /core/java/android/view
parent315f3865983f59e5ad9f42602f443e8c42b6e5c4 (diff)
downloadframeworks_base-3ba6774263db28bdfaa88bfdc4f2dfb37d6ce26a.zip
frameworks_base-3ba6774263db28bdfaa88bfdc4f2dfb37d6ce26a.tar.gz
frameworks_base-3ba6774263db28bdfaa88bfdc4f2dfb37d6ce26a.tar.bz2
Fix bug 3399725 - externally reported issue 14317:
android:scrollbarSize attribute does not work in ScrollView tag Change-Id: Ic2cc908936991f473ccfc60d9c2711edfd45c132
Diffstat (limited to 'core/java/android/view')
-rw-r--r--core/java/android/view/View.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 5e8f31a..d0b150b 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -7539,10 +7539,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
final int height = mBottom - mTop;
final ScrollBarDrawable scrollBar = cache.scrollBar;
- int size = scrollBar.getSize(false);
- if (size <= 0) {
- size = cache.scrollBarSize;
- }
final int scrollX = mScrollX;
final int scrollY = mScrollY;
@@ -7551,6 +7547,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
int left, top, right, bottom;
if (drawHorizontalScrollBar) {
+ int size = scrollBar.getSize(false);
+ if (size <= 0) {
+ size = cache.scrollBarSize;
+ }
+
scrollBar.setParameters(computeHorizontalScrollRange(),
computeHorizontalScrollOffset(),
computeHorizontalScrollExtent(), false);
@@ -7567,6 +7568,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
}
if (drawVerticalScrollBar) {
+ int size = scrollBar.getSize(true);
+ if (size <= 0) {
+ size = cache.scrollBarSize;
+ }
+
scrollBar.setParameters(computeVerticalScrollRange(),
computeVerticalScrollOffset(),
computeVerticalScrollExtent(), true);