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

Commit 3162f432 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: Ie545523a972f1da5ed2ec315f7c9fd923b5d0581
parents a0d0503b 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;
        }