Skip to content

Commit 167451b

Browse files
ls9487kendrickumstattd
authored andcommitted
[MaterialTimePicker] set time wrongly in TimeFormat.CLOCK_12H
Resolves #4495 GIT_ORIGIN_REV_ID=6f77987cc4d65033173a70c86d5ecf1e9ad1268e PiperOrigin-RevId: 766649090
1 parent af387d0 commit 167451b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/java/com/google/android/material/timepicker/MaterialTimePicker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public int getHour() {
169169

170170
/** Sets the hour of day in the range [0, 23]. */
171171
public void setHour(@IntRange(from = 0, to = 23) int hour) {
172-
time.setHour(hour);
172+
time.setHourOfDay(hour);
173173
if (activePresenter != null) {
174174
activePresenter.invalidate();
175175
}

0 commit comments

Comments
 (0)