Skip to content

Commit

Permalink
[MaterialDatePicker][a11y] Improve date input validation feedback fol…
Browse files Browse the repository at this point in the history
…low up

PiperOrigin-RevId: 498167309
  • Loading branch information
paulfthomas authored and afohrman committed Dec 29, 2022
1 parent 0200690 commit cd5246f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ public void onClick(View v) {
public void onInitializeAccessibilityNodeInfo(
@NonNull View host, @NonNull AccessibilityNodeInfoCompat info) {
super.onInitializeAccessibilityNodeInfo(host, info);
info.setContentDescription(getDateSelector().getError());
String contentDescription = getDateSelector().getError() + ", " + info.getText();
info.setContentDescription(contentDescription);
}
});

Expand Down

0 comments on commit cd5246f

Please sign in to comment.