Merge "Fix double counting of margins in keygaurd status bar view" into tm-dev am: 9406ddaa7e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17765604

Change-Id: Iac75a3c48862b543a184bdfed7def05dd947f924
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Evan Laird
2022-04-20 14:50:47 +00:00
committed by Automerger Merge Worker

View File

@@ -233,9 +233,6 @@ public class KeyguardStatusBarView extends RelativeLayout {
LinearLayout.LayoutParams lp = LinearLayout.LayoutParams lp =
(LinearLayout.LayoutParams) mSystemIconsContainer.getLayoutParams(); (LinearLayout.LayoutParams) mSystemIconsContainer.getLayoutParams();
int marginStart = getResources().getDimensionPixelSize(
R.dimen.system_icons_super_container_margin_start);
// Use status_bar_padding_end to replace original // Use status_bar_padding_end to replace original
// system_icons_super_container_avatarless_margin_end to prevent different end alignment // system_icons_super_container_avatarless_margin_end to prevent different end alignment
// between PhoneStatusBarView and KeyguardStatusBarView // between PhoneStatusBarView and KeyguardStatusBarView
@@ -248,8 +245,7 @@ public class KeyguardStatusBarView extends RelativeLayout {
// 1. status bar layout: mPadding(consider round_corner + privacy dot) // 1. status bar layout: mPadding(consider round_corner + privacy dot)
// 2. icon container: R.dimen.status_bar_padding_end // 2. icon container: R.dimen.status_bar_padding_end
if (marginEnd != lp.getMarginEnd() || marginStart != lp.getMarginStart()) { if (marginEnd != lp.getMarginEnd()) {
lp.setMarginStart(marginStart);
lp.setMarginEnd(marginEnd); lp.setMarginEnd(marginEnd);
mSystemIconsContainer.setLayoutParams(lp); mSystemIconsContainer.setLayoutParams(lp);
} }