Migrate SuW new flag isMNStyle into Accessibility

Bug: 223265372
Test: Manual testing
Change-Id: I0b7f4fb02a35c5e0638ddac7b6b49c622c52fbc1
This commit is contained in:
menghanli
2022-03-18 12:12:55 +08:00
parent 65bc1b40ff
commit 12f2a7df0a

View File

@@ -47,7 +47,7 @@ class AccessibilitySetupWizardUtils {
layout.setIcon(icon); layout.setIcon(icon);
layout.setDividerInsets(Integer.MAX_VALUE, 0); layout.setDividerInsets(Integer.MAX_VALUE, 0);
if (ThemeHelper.shouldApplyExtendedPartnerConfig(context)) { if (ThemeHelper.shouldApplyMaterialYouStyle(context)) {
final LinearLayout headerLayout = layout.findManagedViewById(R.id.sud_layout_header); final LinearLayout headerLayout = layout.findManagedViewById(R.id.sud_layout_header);
if (headerLayout != null) { if (headerLayout != null) {
headerLayout.setPadding(0, layout.getPaddingTop(), 0, headerLayout.setPadding(0, layout.getPaddingTop(), 0,