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

Commit 573ff5f0 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

[RONs-AOD] Use Notification Panel margins

RONs AOD takes all available width without any margin in split shade. With this CL, it is going to use same horizontal margins as notification panel is using.

Bug: 402146241
Test: Post a RON on foldable. Transition the unfolded device to AOD and see the RON Skeleton
Flag: android.app.ui_rich_ongoing
Change-Id: I9f3f684a074f9ccc9386d3e72352137f75784f4b
parent 994b2fa5
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -88,7 +88,6 @@ constructor(

        val topPadding =
            context.resources.getDimensionPixelSize(R.dimen.below_clock_padding_start_icons)

        constraintSet.apply {
            val isShadeLayoutWide = shadeModeInteractor.isShadeLayoutWide.value

@@ -97,8 +96,12 @@ constructor(
                connect(viewId, TOP, R.id.smart_space_barrier_top, TOP, 0)

                // and occupy the right half of the screen:
                val marginEnd =
                    context.resources.getDimensionPixelSize(
                        R.dimen.notification_panel_margin_horizontal
                    )
                connect(viewId, START, R.id.split_shade_guideline, START, 0)
                connect(viewId, END, PARENT_ID, END, 0)
                connect(viewId, END, PARENT_ID, END, marginEnd)

                // TODO(b/369151941): Calculate proper right padding here (when in split shade, it's
                // bigger than what the Composable applies!)