Skip to content

Commit 1fcde2c

Browse files
paulfthomasafohrman
authored andcommitted
[MaterialTimePicker] Fix crash when clicking OK/Cancel/Icon on text input mode due to hiding keyboard
PiperOrigin-RevId: 534824218
1 parent 82a91c8 commit 1fcde2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public void show() {
236236
public void hide() {
237237
View currentFocus = timePickerView.getFocusedChild();
238238
if (currentFocus != null) {
239-
ViewUtils.hideKeyboard(currentFocus);
239+
ViewUtils.hideKeyboard(currentFocus, /* useWindowInsetsController= */ false);
240240
}
241241

242242
timePickerView.setVisibility(GONE);

0 commit comments

Comments
 (0)