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

Commit a99cffb8 authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

Fix touches in Large screen header

When using large screen header and QS can scroll, the
NonInterceptingScrollView was intercepting the touches.

By moving the view after the qs_frame (in the children list), this makes
sure that the header has a chance to intercept touches first.

Test: manual, large display size (so it scrolls). Click on privacy
indicators and network settings.
Test: atest CtsPermission4TestCases

Fixes: 252791648
Change-Id: I91362981d34acd703487acfca8e8bd6f8fa953e9
parent 268f0020
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -42,12 +42,6 @@
        android:clipToPadding="false"
        android:clipChildren="false">

        <ViewStub
            android:id="@+id/qs_header_stub"
            android:layout_height="wrap_content"
            android:layout_width="match_parent"
        />

        <include
            layout="@layout/keyguard_status_view"
            android:visibility="gone"/>
@@ -69,6 +63,15 @@
            systemui:layout_constraintBottom_toBottomOf="parent"
        />

        <!-- This view should be after qs_frame so touches are dispatched first to it. That gives
             it a chance to capture clicks before the NonInterceptingScrollView disallows all
             intercepts -->
        <ViewStub
            android:id="@+id/qs_header_stub"
            android:layout_height="wrap_content"
            android:layout_width="match_parent"
        />

        <androidx.constraintlayout.widget.Guideline
            android:id="@+id/qs_edge_guideline"
            android:layout_width="wrap_content"