commit | bc4574352debbb48cadb2bc1a70c3d17449070a1 | [log] [tgz] |
---|---|---|
author | Jason Monk <jmonk@google.com> | Mon Apr 11 11:31:32 2016 -0400 |
committer | Jason Monk <jmonk@google.com> | Mon Apr 11 11:36:55 2016 -0400 |
tree | 519d3b7cdb8579f08f5659927abc96b9f72097bb | |
parent | 726959bf765b5aa4a43c5b62149a72fba7ffac57 [diff] |
Fix QS accessibility issues - Add label to quick settings expand indicator - Add battery tile content description Change-Id: I112c3ba23906a4afe8068acf916e710ec9d40917 Fixes: 28073200
diff --git a/packages/SystemUI/res/layout/quick_status_bar_expanded_header.xml b/packages/SystemUI/res/layout/quick_status_bar_expanded_header.xml index b88846b..5d3b5ff 100644 --- a/packages/SystemUI/res/layout/quick_status_bar_expanded_header.xml +++ b/packages/SystemUI/res/layout/quick_status_bar_expanded_header.xml
@@ -84,6 +84,7 @@ android:clickable="true" android:focusable="true" android:background="?android:attr/selectableItemBackgroundBorderless" + android:contentDescription="@string/accessibility_quick_settings_expand" android:padding="12dp" /> </LinearLayout>
diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index a33b7a3..9f41dff 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml
@@ -1594,4 +1594,7 @@ <!-- Warning message when we try to dock a non-resizeble tasks and launch it in fullscreen instead. --> <string name="dock_non_resizeble_failed_to_dock_text">App does not support split-screen.</string> + <!-- accessibility label for button to expand quick settings [CHAR LIMIT=NONE] --> + <string name="accessibility_quick_settings_expand">Expand quick settings.</string> + </resources>
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/BatteryTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/BatteryTile.java index e494fd8..77eaa3b 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/BatteryTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/BatteryTile.java
@@ -130,6 +130,8 @@ } }; state.label = percentage; + state.contentDescription = mContext.getString(R.string.accessibility_quick_settings_battery, + percentage); } @Override