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
This commit is contained in:
Tetiana Meronyk
2023-07-21 12:58:36 +00:00
parent 72d72142f0
commit 6b27c08150

View File

@@ -1628,7 +1628,7 @@ public class UserSettings extends SettingsPreferenceFragment
mRemovingUserId = -1; mRemovingUserId = -1;
updateUserList(); updateUserList();
if (mCreateUserDialogController.isActive()) { if (mCreateUserDialogController.isActive()) {
mCreateUserDialogController.clear(); mCreateUserDialogController.finish();
} }
} }
} }