Merge "[User Switcher] Remove duplicate views." into tm-qpr-dev
This commit is contained in:
@@ -133,7 +133,9 @@ object UserSwitcherViewBinder {
|
|||||||
launch {
|
launch {
|
||||||
viewModel.users.collect { users ->
|
viewModel.users.collect { users ->
|
||||||
val viewPool =
|
val viewPool =
|
||||||
view.children.filter { it.tag == USER_VIEW_TAG }.toMutableList()
|
gridContainerView.children
|
||||||
|
.filter { it.tag == USER_VIEW_TAG }
|
||||||
|
.toMutableList()
|
||||||
viewPool.forEach {
|
viewPool.forEach {
|
||||||
gridContainerView.removeView(it)
|
gridContainerView.removeView(it)
|
||||||
flowWidget.removeView(it)
|
flowWidget.removeView(it)
|
||||||
|
|||||||
Reference in New Issue
Block a user