diff options
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/MediaViewController.kt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/MediaViewController.kt b/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/MediaViewController.kt index 86e92941256b..975f8f45f9c4 100644 --- a/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/MediaViewController.kt +++ b/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/MediaViewController.kt @@ -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( |