Merge "Don't intercept touches when the qs scrollview can't scroll" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f27737a29d
@@ -46,6 +46,11 @@ public class NonInterceptingScrollView extends ScrollView {
|
|||||||
if (parent != null) {
|
if (parent != null) {
|
||||||
parent.requestDisallowInterceptTouchEvent(true);
|
parent.requestDisallowInterceptTouchEvent(true);
|
||||||
}
|
}
|
||||||
|
} else if (!canScrollVertically(-1)) {
|
||||||
|
// Don't pass on the touch to the view, because scrolling will unconditionally
|
||||||
|
// disallow interception even if we can't scroll.
|
||||||
|
// if a user can't scroll at all, we should never listen to the touch.
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user