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

Commit e32010ac authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed focusing order for the notification panel and QS

Also fixed multiple bugs regarding focusability, where
some elements were focusable even though invisible.
The buttons, QS-tiles, QS-detail buttons, QS Header
icons and other elements now have the correct focusability
state.
The rect indicating accessibility focus is now also
correct for dual label tiles, instead of just the whole
button.
Also fixes an ordering issue where notifications were above
the camera circle when launching.
In addition the focus order of the notifications now work
correctly.

Bug: 15569922
Bug: 15682123
Bug: 17159249
Bug: 15690386
Change-Id: Ie9f7ae73397b41ce2e9a4060699301fdef3a0d01
parent 414b1528
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -29,11 +29,11 @@
    androidprv:layout_maxHeight="@dimen/keyguard_security_height"
    android:gravity="center_horizontal|top">
    <LinearLayout
        android:id="@+id/keyguard_clock_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal|top"
        android:orientation="vertical"
        android:focusable="true">
        android:orientation="vertical" >
        <TextClock
            android:id="@+id/clock_view"
            android:layout_width="wrap_content"
+4 −2
Original line number Diff line number Diff line
@@ -41,7 +41,8 @@
                android:layout_marginEnd="8dp"
                android:minWidth="132dp"
                android:text="@string/quick_settings_more_settings"
                android:textAppearance="@style/TextAppearance.QS.DetailButton" />
                android:textAppearance="@style/TextAppearance.QS.DetailButton"
                android:focusable="true" />

        <TextView
                android:id="@android:id/button1"
@@ -50,7 +51,8 @@
                android:layout_height="wrap_content"
                android:minWidth="88dp"
                android:text="@string/quick_settings_done"
                android:textAppearance="@style/TextAppearance.QS.DetailButton" />
                android:textAppearance="@style/TextAppearance.QS.DetailButton"
                android:focusable="true"/>

    </LinearLayout>
</LinearLayout>
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:padding="@dimen/qs_panel_padding"
    android:visibility="invisible"
    android:background="@drawable/btn_borderless_rect" >

    <TextView
+5 −5
Original line number Diff line number Diff line
@@ -50,10 +50,6 @@
        android:visibility="gone"
        />

    <include
        layout="@layout/keyguard_bottom_area"
        android:visibility="gone" />

    <com.android.systemui.statusbar.phone.NotificationsQuickSettingsContainer
        android:layout_width="match_parent"
        android:layout_height="match_parent"
@@ -117,6 +113,10 @@

    </com.android.systemui.statusbar.phone.NotificationsQuickSettingsContainer>

    <include
            layout="@layout/keyguard_bottom_area"
            android:visibility="gone" />

    <include layout="@layout/status_bar_expanded_header" />

    <com.android.systemui.statusbar.AlphaOptimizedView
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@
        android:layout_height="wrap_content"
        android:visibility="gone"
        >
    <ImageButton
    <com.android.systemui.statusbar.DismissViewImageButton
            android:id="@+id/dismiss_text"
            android:layout_width="48dp"
            android:layout_height="48dp"
Loading