Dismiss action menu when item is clicked.
There is a bug in the full-screen user switcher UI. The action menu (accessible from the "Add" button) does not dismiss itself when one of its items is clicked. This issue is only present in the new implementation and no in the old implementation. This CL fixes that for the new implementation. Bug: 243844359 Test: Manually verified that the dialog is now dismissed when one of its items is clicked. Change-Id: I051dad133d94d454836f7c6868d57b7085ee1412
This commit is contained in:
@@ -174,6 +174,7 @@ object UserSwitcherViewBinder {
|
||||
setOnItemClickListener { _, _, position, _ ->
|
||||
val itemPositionExcludingHeader = position - 1
|
||||
adapter.getItem(itemPositionExcludingHeader).onClicked()
|
||||
dismiss()
|
||||
}
|
||||
|
||||
show()
|
||||
|
||||
Reference in New Issue
Block a user