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

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

Merge "Fix clipped inactive UMO on new QS design" into main

parents 880cdaa7 9b7cab52
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -147,6 +147,7 @@ import com.android.systemui.res.R
import com.android.systemui.util.LifecycleFragment
import com.android.systemui.util.animation.UniqueObjectHostView
import com.android.systemui.util.asIndenting
import com.android.systemui.util.children
import com.android.systemui.util.printSection
import com.android.systemui.util.println
import java.io.PrintWriter
@@ -1281,7 +1282,17 @@ private fun MediaObject(
                        )
                }
            },
            update = { view -> view.update() },
            update = { view ->
                view.update()
                // Update layout params if host view bounds are higher than its child.
                val height = mediaHost.hostView.height
                val width = mediaHost.hostView.width
                mediaHost.hostView.children.forEach { child ->
                    if (child is FrameLayout && (height > child.height || width > child.width)) {
                        child.layoutParams = FrameLayout.LayoutParams(width, height)
                    }
                }
            },
            onReset = {},
        )
    }