Skip to content

Commit 861c893

Browse files
minaripenguinaswin7469
authored andcommitted
SystemUI: Re-tune split shade for QPR3
Change-Id: Ie1e762a8722f46e6f093affb3d1037d6acb4e9d1 Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
1 parent c4d73fa commit 861c893

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowView.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ public WindowInsets onApplyWindowInsets(WindowInsets windowInsets) {
9494
if (getFitsSystemWindows()) {
9595
boolean paddingChanged = insets.top != getPaddingTop()
9696
|| insets.bottom != getPaddingBottom();
97-
9897
// Drop top inset, and pass through bottom inset.
9998
if (paddingChanged) {
10099
setPadding(0, 0, 0, 0);
@@ -126,9 +125,13 @@ private void applyMargins() {
126125
View child = getChildAt(i);
127126
if (child.getLayoutParams() instanceof LayoutParams) {
128127
LayoutParams lp = (LayoutParams) child.getLayoutParams();
129-
if (lp.rightMargin != mRightInset || lp.leftMargin != mLeftInset) {
130-
lp.rightMargin = lp.ignoreRightInset ? 0 : mRightInset;
128+
boolean marginChanged = lp.rightMargin != mRightInset || lp.leftMargin != mLeftInset;
129+
if (marginChanged) {
131130
lp.leftMargin = lp.ignoreLeftInset ? 0 : mLeftInset;
131+
lp.rightMargin = lp.ignoreRightInset ? 0 : mRightInset;
132+
if (lp.ignoreLeftInset && lp.rightMargin == 0) {
133+
lp.rightMargin = mRightInset;
134+
}
132135
child.requestLayout();
133136
}
134137
}

0 commit comments

Comments
 (0)