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

Commit 47d35965 authored by Michael Mikhail's avatar Michael Mikhail
Browse files

Adjust UMO height if matches parent.

Flag: com.android.systemui.scene_container
Bug: 378941880
Test: checked UI.
Change-Id: Ie149024e544dd7b45b729ae02e5a8627eb354d47
parent 0809378c
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -1042,6 +1042,18 @@ constructor(
            return null
        }

        if (state.expansion == 1.0f) {
            val height =
                if (state.expandedMatchesParentHeight) {
                    heightInSceneContainerPx
                } else {
                    context.resources.getDimensionPixelSize(
                        R.dimen.qs_media_session_height_expanded
                    )
                }
            setBackgroundHeights(height)
        }

        // Similar to obtainViewState: Let's create a new measurement
        val result =
            transitionLayout?.calculateViewState(