Merge "Don't intercept touches when the qs scrollview can't scroll" into rvc-dev am: f27737a29d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11955698

Change-Id: I9fd887159020d83cb1372333e1029977dbd58c62
This commit is contained in:
TreeHugger Robot
2020-06-22 20:37:10 +00:00
committed by Automerger Merge Worker

View File

@@ -46,6 +46,11 @@ public class NonInterceptingScrollView extends ScrollView {
if (parent != null) {
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;
}