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

Commit ed24500c authored by Johannes Gallmann's avatar Johannes Gallmann Committed by Android (Google) Code Review
Browse files

Merge "Remove nested repeatOnLifecycle calls" into udc-qpr-dev

parents 74f51f24 29671823
Loading
Loading
Loading
Loading
+13 −15
Original line number Diff line number Diff line
@@ -112,7 +112,6 @@ object ColorSectionViewBinder {
            val optionSelectedView = itemView.findViewById<ImageView>(R.id.option_selected)

            lifecycleOwner.lifecycleScope.launch {
                lifecycleOwner.repeatOnLifecycle(Lifecycle.State.STARTED) {
                launch {
                    item.isSelected.collect { isSelected ->
                        optionSelectedView.isVisible = isSelected
@@ -130,7 +129,6 @@ object ColorSectionViewBinder {
                    }
                }
            }
            }
            view.addView(itemView)
        }
        // add overflow option