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

Commit ef821456 authored by George Lin's avatar George Lin
Browse files

Fix the crash made from ag/22718542

This is to fix the unnecessary change in ag/22718542

Test: Manually checked the crash goes away
Bug: 278784119
Change-Id: I74b91e89cead073079ad83a2426abf30c101487a
parent 83dc7747
Loading
Loading
Loading
Loading
+8 −12
Original line number Diff line number Diff line
@@ -47,20 +47,16 @@ object ClockCarouselViewBinder {

                launch {
                    viewModel.allClockIds.collect { allClockIds ->
                        if (allClockIds.size > 1) {
                        carouselView.setUpClockCarouselView(
                            clockIds = allClockIds,
                            onGetClockController = { clockId ->
                                clockViewFactory.getController(clockId)
                            },
                                onClockSelected = { clockId ->
                                    viewModel.setSelectedClock(clockId)
                                },
                            onClockSelected = { clockId -> viewModel.setSelectedClock(clockId) },
                            getPreviewRatio = { clockViewFactory.getRatio() }
                        )
                    }
                }
                }

                launch {
                    viewModel.allClockIds.collect {