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

Commit 9b7cab52 authored by Michael Mikhail's avatar Michael Mikhail
Browse files

Fix clipped inactive UMO on new QS design

Flag: com.android.systemui.qs_ui_refactor_compose_fragment
Bug: 404815434
Test: checked UI.
Change-Id: I4054d7e0f9f3e0545c75bddae4e19e52638f49b2
parent d8cd00a9
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
@@ -1245,7 +1246,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 = {},
        )
    }