File tree Expand file tree Collapse file tree
packages/SystemUI/src/com/android/systemui/shade Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments