diff options
author | Romain Guy <romainguy@google.com> | 2012-03-20 14:23:09 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2012-03-20 14:23:09 -0700 |
commit | e72cf7341a608402309ce894fc12d050cc7c0e14 (patch) | |
tree | 4d5c2da28fd7af5b3e250b9dbdb2eb218bb2ce52 /core/java/android/widget | |
parent | e979e62ac7313b7cffe9b131bb8a99c356068b45 (diff) | |
download | frameworks_base-e72cf7341a608402309ce894fc12d050cc7c0e14.zip frameworks_base-e72cf7341a608402309ce894fc12d050cc7c0e14.tar.gz frameworks_base-e72cf7341a608402309ce894fc12d050cc7c0e14.tar.bz2 |
Put back invalidate optimization
Change-Id: I6407e452deb44e50a50632961e960cf0bd39b09d
Diffstat (limited to 'core/java/android/widget')
-rw-r--r-- | core/java/android/widget/HorizontalScrollView.java | 4 | ||||
-rw-r--r-- | core/java/android/widget/ScrollView.java | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/core/java/android/widget/HorizontalScrollView.java b/core/java/android/widget/HorizontalScrollView.java index 30b2a67..4e13ea1 100644 --- a/core/java/android/widget/HorizontalScrollView.java +++ b/core/java/android/widget/HorizontalScrollView.java @@ -716,9 +716,7 @@ public class HorizontalScrollView extends FrameLayout { super.scrollTo(scrollX, scrollY); } - if (!awakenScrollBars()) { - invalidate(); - } + awakenScrollBars(); } @Override diff --git a/core/java/android/widget/ScrollView.java b/core/java/android/widget/ScrollView.java index 2680e03..e0e3e93 100644 --- a/core/java/android/widget/ScrollView.java +++ b/core/java/android/widget/ScrollView.java @@ -715,9 +715,7 @@ public class ScrollView extends FrameLayout { super.scrollTo(scrollX, scrollY); } - if (!awakenScrollBars()) { - invalidate(); - } + awakenScrollBars(); } @Override |