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

Commit 2b2a16a6 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Fix QS Horizontal Margin

Test: atest SystemUITests
Change-Id: I6fbacf8636e83df48812ee02ce0dbc7a20a65a4f
parent be586c8a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -207,6 +207,9 @@
    <!-- Default padding for dialogs. -->
    <dimen name="dialog_padding">16dp</dimen>

    <!-- The horizontal margin of the content in the notification shade -->
    <dimen name="notification_shade_content_margin_horizontal">16dp</dimen>

    <!-- The margin on the start of the content view -->
    <dimen name="notification_content_margin_start">16dp</dimen>

+1 −0
Original line number Diff line number Diff line
@@ -2860,6 +2860,7 @@
  <java-symbol type="drawable" name="ic_collapse_bundle" />
  <java-symbol type="dimen" name="notification_min_content_height" />
  <java-symbol type="dimen" name="notification_header_shrink_min_width" />
  <java-symbol type="dimen" name="notification_shade_content_margin_horizontal" />
  <java-symbol type="dimen" name="notification_content_margin_start" />
  <java-symbol type="dimen" name="notification_content_margin_end" />
  <java-symbol type="dimen" name="notification_reply_inset" />
+5 −6
Original line number Diff line number Diff line
@@ -205,12 +205,11 @@ public class QSContainerImpl extends FrameLayout {
        mQSPanelContainer.setLayoutParams(layoutParams);

        mSideMargins = getResources().getDimensionPixelSize(R.dimen.notification_side_paddings);
        mContentPaddingStart = getResources().getDimensionPixelSize(
                com.android.internal.R.dimen.notification_content_margin_start);
        int newPaddingEnd = getResources().getDimensionPixelSize(
                com.android.internal.R.dimen.notification_content_margin_end);
        boolean marginsChanged = newPaddingEnd != mContentPaddingEnd;
        mContentPaddingEnd = newPaddingEnd;
        int padding = getResources().getDimensionPixelSize(
                com.android.internal.R.dimen.notification_shade_content_margin_horizontal);
        boolean marginsChanged = padding != mContentPaddingStart || padding != mContentPaddingEnd;
        mContentPaddingStart = padding;
        mContentPaddingEnd = padding;
        if (marginsChanged) {
            updatePaddingsAndMargins();
        }