diff options
author | Setup Wizard Team <android-setup-team-eng@google.com> | 2021-09-30 12:19:04 +0800 |
---|---|---|
committer | Pasty Chang <pastychang@google.com> | 2021-09-30 13:03:09 +0000 |
commit | b665e5f81963c02544e3d3dfe29cf53d52ea2418 (patch) | |
tree | 1b03d44ba779931b7f5ca187fae5a2d562042bd3 /main/src | |
parent | 842dff4bdfeb011e05482eadb6076b07a9acd173 (diff) | |
download | setupdesign-b665e5f81963c02544e3d3dfe29cf53d52ea2418.tar.gz |
Import updated Android Setupdesign Library 399844407
Copied from google3/third_party/java_src/android_libs/setupdesign
Test: mm
Bug: 200248171
Included changes:
- 399844407 Automated g4 rollback of changelist 397224761.
- 399844364 Automated g4 rollback of changelist 398671729.
- 399827862 Update the content top margin for GlifPreferenceLayout la...
- 398671729 Fix oobe e2e test failed because SUW crash when ProgressA...
PiperOrigin-RevId: 399844407
Change-Id: I5390417177bb81b0a95522317defc5bc4ec8967f
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/com/google/android/setupdesign/GlifLayout.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/main/src/com/google/android/setupdesign/GlifLayout.java b/main/src/com/google/android/setupdesign/GlifLayout.java index ee62bee..947cb13 100644 --- a/main/src/com/google/android/setupdesign/GlifLayout.java +++ b/main/src/com/google/android/setupdesign/GlifLayout.java @@ -137,7 +137,6 @@ public class GlifLayout extends PartnerCustomizationLayout { if (primaryColor != null) { setPrimaryColor(primaryColor); } - if (applyPartnerHeavyThemeResource) { updateContentBackgroundColorWithPartnerConfig(); @@ -151,7 +150,12 @@ public class GlifLayout extends PartnerCustomizationLayout { // the value of partner config. LayoutStyler.applyPartnerCustomizationExtraPaddingStyle(view); - applyPartnerCustomizationContentPaddingTopStyle(view); + // {@class GlifPreferenceLayout} Inherited from {@class GlifRecyclerLayout}. The API would + // be called twice from GlifRecyclerLayout and GlifLayout, so it should skip the API here + // when the instance is GlifPreferenceLayout. + if (!(this instanceof GlifPreferenceLayout)) { + applyPartnerCustomizationContentPaddingTopStyle(view); + } } } updateLandscapeMiddleHorizontalSpacing(); |