Merge "Fix QS accessibility issues" into nyc-dev

This commit is contained in:
Jason Monk
2016-04-11 16:23:47 +00:00
committed by Android (Google) Code Review
3 changed files with 6 additions and 0 deletions

View File

@@ -84,6 +84,7 @@
android:clickable="true" android:clickable="true"
android:focusable="true" android:focusable="true"
android:background="?android:attr/selectableItemBackgroundBorderless" android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/accessibility_quick_settings_expand"
android:padding="12dp" /> android:padding="12dp" />
</LinearLayout> </LinearLayout>

View File

@@ -1594,4 +1594,7 @@
<!-- Warning message when we try to dock a non-resizeble tasks and launch it in fullscreen instead. --> <!-- 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> <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> </resources>

View File

@@ -130,6 +130,8 @@ public class BatteryTile extends QSTile<QSTile.State> implements BatteryControll
} }
}; };
state.label = percentage; state.label = percentage;
state.contentDescription = mContext.getString(R.string.accessibility_quick_settings_battery,
percentage);
} }
@Override @Override