diff options
| author | 2022-09-22 15:22:26 -0700 | |
|---|---|---|
| committer | 2022-09-22 15:22:26 -0700 | |
| commit | 1cb81f64393c494af7923bfea8f6df2fa6aa112c (patch) | |
| tree | 1e1329aaf1627a88c217d0dd5994d3315859669f | |
| parent | 488a69bfc46df63c392a30dfefd112e4cb69a1ce (diff) | |
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
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/user/ui/binder/UserSwitcherViewBinder.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/user/ui/binder/UserSwitcherViewBinder.kt b/packages/SystemUI/src/com/android/systemui/user/ui/binder/UserSwitcherViewBinder.kt index d7ad3cefaf06..938417f9dbe3 100644 --- a/packages/SystemUI/src/com/android/systemui/user/ui/binder/UserSwitcherViewBinder.kt +++ b/packages/SystemUI/src/com/android/systemui/user/ui/binder/UserSwitcherViewBinder.kt @@ -174,6 +174,7 @@ object UserSwitcherViewBinder { setOnItemClickListener { _, _, position, _ -> val itemPositionExcludingHeader = position - 1 adapter.getItem(itemPositionExcludingHeader).onClicked() + dismiss() } show() |