diff options
| author | 2016-06-01 17:20:16 +0000 | |
|---|---|---|
| committer | 2016-06-01 17:20:17 +0000 | |
| commit | 1ceef7c0fab15af522f56ade3e08abf559622181 (patch) | |
| tree | 9c7ebdd84959e86acf5d60ecfb03620dc0bcfa8a | |
| parent | d579be0cf234a35273f79676c102b8bd80e071dc (diff) | |
| parent | 35742d8c31d4a8cfe3d21ab51ddcddfa642c1d9a (diff) | |
Merge "QS: Followup to scroll fixes" into nyc-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/NonInterceptingScrollView.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/NonInterceptingScrollView.java b/packages/SystemUI/src/com/android/systemui/qs/NonInterceptingScrollView.java index 15e1c96324b9..c204d94916a4 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/NonInterceptingScrollView.java +++ b/packages/SystemUI/src/com/android/systemui/qs/NonInterceptingScrollView.java @@ -24,8 +24,6 @@ import android.widget.ScrollView; */ public class NonInterceptingScrollView extends ScrollView { - private float mInitialY; - public NonInterceptingScrollView(Context context, AttributeSet attrs) { super(context, attrs); } @@ -35,14 +33,7 @@ public class NonInterceptingScrollView extends ScrollView { int action = ev.getActionMasked(); switch (action) { case MotionEvent.ACTION_DOWN: - mInitialY = ev.getY(); - break; - case MotionEvent.ACTION_UP: - case MotionEvent.ACTION_CANCEL: - requestDisallowInterceptTouchEvent(false); - break; - default: - if (canScrollVertically(ev.getY() > mInitialY ? -1 : 1)) { + if (canScrollVertically(1)) { requestDisallowInterceptTouchEvent(true); } break; |