From 6b27c081502ed99bbbd09c2e715c731a726ffd15 Mon Sep 17 00:00:00 2001 From: Tetiana Meronyk Date: Fri, 21 Jul 2023 12:58:36 +0000 Subject: [PATCH] Fix keyboard showing after dialog dismissed When dialog for creating user was dismissed with keyboard being displayed, the keyboard stayed on the screen and could not be released due to incorrect list of methods called on dialog dismissal. This CL topic fixes onDismiss() behaviour of this dialog. Videos of current behaviour and behaviour after fixed are attached to the bug. Bug: 291865725 Test: atest UserSettingsTest Change-Id: Ib3ade3de9228c8ba24e7ac2e235aaeec45efbe4e --- src/com/android/settings/users/UserSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/users/UserSettings.java b/src/com/android/settings/users/UserSettings.java index 93b7c781517..b0816fdf4ad 100644 --- a/src/com/android/settings/users/UserSettings.java +++ b/src/com/android/settings/users/UserSettings.java @@ -1628,7 +1628,7 @@ public class UserSettings extends SettingsPreferenceFragment mRemovingUserId = -1; updateUserList(); if (mCreateUserDialogController.isActive()) { - mCreateUserDialogController.clear(); + mCreateUserDialogController.finish(); } } }