Loading packages/SystemUI/compose/features/src/com/android/systemui/media/controls/ui/composable/MediaCarousel.kt +5 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,11 @@ fun SceneScope.MediaCarousel( val mediaFrame = carouselController.mediaFrame (mediaFrame.parent as? ViewGroup)?.removeView(mediaFrame) addView(mediaFrame) layoutParams = FrameLayout.LayoutParams( FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT, ) } }, update = { Loading packages/SystemUI/res/layout/media_carousel.xml +2 −2 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_height="match_parent" android:clipChildren="false" android:clipToPadding="false" android:forceHasOverlappingRendering="false" Loading @@ -27,7 +27,7 @@ <com.android.systemui.media.controls.ui.view.MediaScrollView android:id="@+id/media_carousel_scroller" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_height="match_parent" android:scrollbars="none" android:clipChildren="false" android:clipToPadding="false" Loading packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/MediaCarouselController.kt +6 −0 Original line number Diff line number Diff line Loading @@ -656,8 +656,14 @@ constructor( if (width == widthInSceneContainerPx && height == heightInSceneContainerPx) { return } if (width <= 0 || height <= 0) { // reject as invalid return } widthInSceneContainerPx = width heightInSceneContainerPx = height mediaCarouselScrollHandler.playerWidthPlusPadding = width + context.resources.getDimensionPixelSize(R.dimen.qs_media_padding) updatePlayers(recreateMedia = true) } Loading Loading
packages/SystemUI/compose/features/src/com/android/systemui/media/controls/ui/composable/MediaCarousel.kt +5 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,11 @@ fun SceneScope.MediaCarousel( val mediaFrame = carouselController.mediaFrame (mediaFrame.parent as? ViewGroup)?.removeView(mediaFrame) addView(mediaFrame) layoutParams = FrameLayout.LayoutParams( FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT, ) } }, update = { Loading
packages/SystemUI/res/layout/media_carousel.xml +2 −2 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_height="match_parent" android:clipChildren="false" android:clipToPadding="false" android:forceHasOverlappingRendering="false" Loading @@ -27,7 +27,7 @@ <com.android.systemui.media.controls.ui.view.MediaScrollView android:id="@+id/media_carousel_scroller" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_height="match_parent" android:scrollbars="none" android:clipChildren="false" android:clipToPadding="false" Loading
packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/MediaCarouselController.kt +6 −0 Original line number Diff line number Diff line Loading @@ -656,8 +656,14 @@ constructor( if (width == widthInSceneContainerPx && height == heightInSceneContainerPx) { return } if (width <= 0 || height <= 0) { // reject as invalid return } widthInSceneContainerPx = width heightInSceneContainerPx = height mediaCarouselScrollHandler.playerWidthPlusPadding = width + context.resources.getDimensionPixelSize(R.dimen.qs_media_padding) updatePlayers(recreateMedia = true) } Loading