diff options
| author | 2011-10-28 16:39:18 -0700 | |
|---|---|---|
| committer | 2011-10-28 16:40:07 -0700 | |
| commit | 9edd58e9504cc3f070758e9125c49a72a3642186 (patch) | |
| tree | f28ca2cd1a07a9a1fdee822027a108e67ef3d8b0 | |
| parent | c4f09e03099cddc57aa5b777921182ab1d13ae8a (diff) | |
HorizontalScrollView should delay child presses
In Recents in landscape, we were seeing blue flashes when scrolling; generally, almost every scrolling container should be delaying child presses to prevent this problem
| -rw-r--r-- | core/java/android/widget/HorizontalScrollView.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/widget/HorizontalScrollView.java b/core/java/android/widget/HorizontalScrollView.java index 57701aede14e..1683d202c1c0 100644 --- a/core/java/android/widget/HorizontalScrollView.java +++ b/core/java/android/widget/HorizontalScrollView.java @@ -697,6 +697,11 @@ public class HorizontalScrollView extends FrameLayout { } @Override + public boolean shouldDelayChildPressedState() { + return true; + } + + @Override protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) { // Treat animating scrolls differently; see #computeScroll() for why. |