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

This commit is contained in:
Dan Sandler
2015-06-11 14:55:00 +00:00
committed by Android (Google) Code Review
3 changed files with 3 additions and 1 deletions

View File

@@ -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>

View File

@@ -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"

View File

@@ -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();
}