Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf199e8c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

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

Change-Id: I9fd887159020d83cb1372333e1029977dbd58c62
parents da695b5a f27737a2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;
        }