Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66bd4e79 authored by Aaron Liu's avatar Aaron Liu Committed by Android (Google) Code Review
Browse files

Merge "[User Switcher] Remove duplicate views." into tm-qpr-dev

parents 7124862f 1dedd162
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -133,7 +133,9 @@ object UserSwitcherViewBinder {
                launch {
                    viewModel.users.collect { users ->
                        val viewPool =
                            view.children.filter { it.tag == USER_VIEW_TAG }.toMutableList()
                            gridContainerView.children
                                .filter { it.tag == USER_VIEW_TAG }
                                .toMutableList()
                        viewPool.forEach {
                            gridContainerView.removeView(it)
                            flowWidget.removeView(it)