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

Commit 9024d69f authored by Matt Pietal's avatar Matt Pietal Committed by Android (Google) Code Review
Browse files

Merge "Fix jank on shade expansion" into main

parents 4bdb79bc 1015a431
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -92,8 +92,8 @@ constructor(
        val button = view as ImageView
        val button = view as ImageView
        val configurationBasedDimensions = MutableStateFlow(loadFromResources(view))
        val configurationBasedDimensions = MutableStateFlow(loadFromResources(view))
        val disposableHandle =
        val disposableHandle =
            view.repeatWhenAttached(mainImmediateDispatcher) {
            view.repeatWhenAttached {
                repeatOnLifecycle(Lifecycle.State.STARTED) {
                repeatOnLifecycle(Lifecycle.State.CREATED) {
                    launch("$TAG#viewModel") {
                    launch("$TAG#viewModel") {
                        viewModel.collect { buttonModel ->
                        viewModel.collect { buttonModel ->
                            updateButton(
                            updateButton(