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

Commit ad7e0d5e authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

[RONs] Fix ToplineView end margin

ToplineView is in a relativelayout and aligned to the expander. When expander is not visible, it is aligned to parent's end.
This CL fix this issue by setting correct margin values.
Test: Post a ron with a large subtext to make topline width high. Observe it has enough margin end. Repeat it with largeicon.
Bug: 407819104
Flag: android.app.ui_rich_ongoing

Change-Id: Icfd4b5920d4e8b0667a94131b2a8126d96e0ce46
parent dd614622
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -6249,6 +6249,12 @@ public class Notification implements Parcelable
            final float extraMarginEndDpIfVisible = viewWidthDp + iconMarginDp;
            result.setRightIconState(rightIcon != null /* visible */, viewWidthDp,
                    viewHeightDp, extraMarginEndDpIfVisible, spaceForExpanderDp);
            if (mN.isPromotedOngoing() && !mParams.mHeaderless) {
                result.mHeadingExtraMarginSet.setValues(
                        /* valueIfGone = */ contentMarginDp,
                        /* valueIfVisible = */ extraMarginEndDpIfVisible + contentMarginDp);
            }
        }
        /**