diff options
author | Beth Thibodeau <ethibodeau@google.com> | 2019-06-12 14:44:18 -0400 |
---|---|---|
committer | Beth Thibodeau <ethibodeau@google.com> | 2019-06-12 14:44:18 -0400 |
commit | c84412d6605b3fb7dec250c55f4f26a5b5d00cbf (patch) | |
tree | 48dd785e20d88782bd334340cba2172414aa16b7 | |
parent | 4f16109a506a5e03988dcb7136ce8712ba08b241 (diff) | |
download | ThemePicker-c84412d6605b3fb7dec250c55f4f26a5b5d00cbf.tar.gz |
Set pane title for accessibility issues
The icon and color tileView didn't update content description readout
until re-selected. Setting the pane title updates it immediately
instead.
Fixes: 131293339
Test: manual
Change-Id: I00f152adf5eb599154258cc820dc780197d0f477
-rw-r--r-- | src/com/android/customization/widget/OptionSelectorController.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/customization/widget/OptionSelectorController.java b/src/com/android/customization/widget/OptionSelectorController.java index 5e3a4231..9c92079d 100644 --- a/src/com/android/customization/widget/OptionSelectorController.java +++ b/src/com/android/customization/widget/OptionSelectorController.java @@ -311,6 +311,7 @@ public class OptionSelectorController<T extends CustomizationOption<T>> { if (labelView != null && !TextUtils.isEmpty(labelView.getText())) { labelView.setContentDescription(cd); } else if (tileView != null) { + tileView.setAccessibilityPaneTitle(cd); tileView.setContentDescription(cd); } } @@ -319,6 +320,7 @@ public class OptionSelectorController<T extends CustomizationOption<T>> { if (labelView != null && !TextUtils.isEmpty(labelView.getText())) { labelView.setContentDescription(title); } else if (tileView != null) { + tileView.setAccessibilityPaneTitle(title); tileView.setContentDescription(title); } } |