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
(cherry picked from commit cd5246f)
  • Loading branch information
paulfthomas authored and dsn5ft committed Jan 5, 2023
1 parent f394903 commit 1200e25
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 1200e25

Please sign in to comment.