File tree 1 file changed +10
-6
lines changed
lib/java/com/google/android/material/timepicker
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -138,10 +138,12 @@ public void onInitializeAccessibilityNodeInfo(
138
138
View host , AccessibilityNodeInfoCompat info ) {
139
139
super .onInitializeAccessibilityNodeInfo (host , info );
140
140
info .setContentDescription (
141
- host .getResources ()
142
- .getString (
143
- time .getHourContentDescriptionResId (),
144
- String .valueOf (time .getHourForDisplay ())));
141
+ res .getString (R .string .material_timepicker_hour )
142
+ + " " // Adds a pause between the hour label and the hour value.
143
+ + host .getResources ()
144
+ .getString (
145
+ time .getHourContentDescriptionResId (),
146
+ String .valueOf (time .getHourForDisplay ())));
145
147
}
146
148
});
147
149
minuteTextInput .setChipDelegate (
@@ -151,8 +153,10 @@ public void onInitializeAccessibilityNodeInfo(
151
153
View host , AccessibilityNodeInfoCompat info ) {
152
154
super .onInitializeAccessibilityNodeInfo (host , info );
153
155
info .setContentDescription (
154
- host .getResources ()
155
- .getString (R .string .material_minute_suffix , String .valueOf (time .minute )));
156
+ res .getString (R .string .material_timepicker_minute )
157
+ + " " // Adds a pause between the minute label and the minute value.
158
+ + host .getResources ()
159
+ .getString (R .string .material_minute_suffix , String .valueOf (time .minute )));
156
160
}
157
161
});
158
162
You can’t perform that action at this time.
0 commit comments