Loading packages/SystemUI/src/com/android/systemui/qs/QSScrollLayout.java +17 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,23 @@ public class QSScrollLayout extends NestedScrollView { addView(linearLayout); } @Override public boolean onInterceptTouchEvent(MotionEvent ev) { if (canScrollVertically(1) || canScrollVertically(-1)) { return super.onInterceptTouchEvent(ev); } return false; } @Override public boolean onTouchEvent(MotionEvent ev) { if (canScrollVertically(1) || canScrollVertically(-1)) { return super.onTouchEvent(ev); } return false; } public boolean shouldIntercept(MotionEvent ev) { if (ev.getY() > (getBottom() - mFooterHeight)) { // Do not intercept touches that are below the divider between QS and the footer. Loading Loading
packages/SystemUI/src/com/android/systemui/qs/QSScrollLayout.java +17 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,23 @@ public class QSScrollLayout extends NestedScrollView { addView(linearLayout); } @Override public boolean onInterceptTouchEvent(MotionEvent ev) { if (canScrollVertically(1) || canScrollVertically(-1)) { return super.onInterceptTouchEvent(ev); } return false; } @Override public boolean onTouchEvent(MotionEvent ev) { if (canScrollVertically(1) || canScrollVertically(-1)) { return super.onTouchEvent(ev); } return false; } public boolean shouldIntercept(MotionEvent ev) { if (ev.getY() > (getBottom() - mFooterHeight)) { // Do not intercept touches that are below the divider between QS and the footer. Loading