commit | 1d5e91001d645a90b7c352a7185acaeeae8b9b6a | [log] [tgz] |
---|---|---|
author | Lucas Dupin <dupin@google.com> | Mon May 21 17:58:05 2018 -0700 |
committer | Lucas Dupin <dupin@google.com> | Mon May 21 17:58:05 2018 -0700 |
tree | 1b7607185f12dab6c7bce07e992c4898d2504bc4 | |
parent | 402e2a2b6f47ca955db084255d642e9f3765e4eb [diff] |
Add content description to zenmode Test: manual Change-Id: Ic478e8a6fcd2088d198b2cee2e70ab8376b4709d Fixes: 79686343
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java index f066e34..fd26885 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java
@@ -196,6 +196,7 @@ final SliceItem titleItem = rc.getTitleItem(); button.setText(titleItem == null ? null : titleItem.getText()); + button.setContentDescription(rc.getContentDescription()); Drawable iconDrawable = null; SliceItem icon = SliceQuery.find(item.getSlice(),
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java index c5e66f9..8b9bf77 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java
@@ -151,6 +151,8 @@ return; } RowBuilder dndBuilder = new RowBuilder(builder, mDndUri) + .setContentDescription(getContext().getResources() + .getString(R.string.accessibility_quick_settings_dnd)) .addEndItem(Icon.createWithResource(getContext(), R.drawable.stat_sys_dnd)); builder.addRow(dndBuilder); }