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

Commit 31ae9936 authored by Dan Sandler's avatar Dan Sandler Committed by Android (Google) Code Review
Browse files

Merge "A11y: Annotate the QS brightness slider properly." into mnc-dev

parents 08f247fe 187fe17b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:layout_weight="1"
        android:contentDescription="@string/accessibility_brightness"
        systemui:text="@string/status_bar_settings_auto_brightness_label" />

</LinearLayout>
+0 −1
Original line number Diff line number Diff line
@@ -45,7 +45,6 @@
        android:paddingBottom="16dp"
        android:thumb="@drawable/ic_brightness_thumb"
        android:splitTrack="false"
        android:contentDescription="@string/accessibility_brightness"
        />
    <TextView
        android:id="@+id/label"
+2 −0
Original line number Diff line number Diff line
@@ -74,6 +74,8 @@ public class ToggleSlider extends RelativeLayout {
        mLabel = (TextView) findViewById(R.id.label);
        mLabel.setText(a.getString(R.styleable.ToggleSlider_text));

        setLabelFor(R.id.slider); // use our a11y text to annotate, not replace, the slider's

        a.recycle();
    }