Loading res/values/strings.xml +3 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,9 @@ <!-- Content description of the previous button to bring user to the previous preview page. [CHAR LIMIT=NONE] --> <string name="previous_page_content_description">Previous</string> <!-- Content description indicating that the selected option is currently applied to the device. [CHAR_LIMIT=NONE] --> <string name="option_applied_description"><xliff:g name="style_name">%1$s</xliff:g>, currently applied</string> <!-- Sample text used to show a preview of a selected font [CHAR LIMIT=3] --> <string name="theme_font_example">ABC</string> Loading src/com/android/customization/widget/OptionSelectorController.java +5 −0 Original line number Diff line number Diff line Loading @@ -178,6 +178,11 @@ public class OptionSelectorController<T extends CustomizationOption<T>> { holder.itemView.getPaddingBottom() - (checkSize/3)); checkedFrame.setLayerInsetLeft(idx, checkSize/3); holder.itemView.setForeground(checkedFrame); CharSequence cd = mContainer.getContext().getString( R.string.option_applied_description, option.getTitle()); holder.labelView.setContentDescription(cd); } else if (mShowCheckmark) { holder.itemView.setForeground(null); } Loading Loading
res/values/strings.xml +3 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,9 @@ <!-- Content description of the previous button to bring user to the previous preview page. [CHAR LIMIT=NONE] --> <string name="previous_page_content_description">Previous</string> <!-- Content description indicating that the selected option is currently applied to the device. [CHAR_LIMIT=NONE] --> <string name="option_applied_description"><xliff:g name="style_name">%1$s</xliff:g>, currently applied</string> <!-- Sample text used to show a preview of a selected font [CHAR LIMIT=3] --> <string name="theme_font_example">ABC</string> Loading
src/com/android/customization/widget/OptionSelectorController.java +5 −0 Original line number Diff line number Diff line Loading @@ -178,6 +178,11 @@ public class OptionSelectorController<T extends CustomizationOption<T>> { holder.itemView.getPaddingBottom() - (checkSize/3)); checkedFrame.setLayerInsetLeft(idx, checkSize/3); holder.itemView.setForeground(checkedFrame); CharSequence cd = mContainer.getContext().getString( R.string.option_applied_description, option.getTitle()); holder.labelView.setContentDescription(cd); } else if (mShowCheckmark) { holder.itemView.setForeground(null); } Loading