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

Commit b036f841 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Adjust UMO height if matches parent." into main

parents b8617728 47d35965
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(