Import updated Android Setupdesign Library 412352628
Copied from google3/third_party/java_src/android_libs/setupdesign
Test: mm
Included changes:
- 412352628 [SetupDesign] update targetApi number for android:textDir...
- 412250860 Add partner config for the middle space of 2-column layou...
Bug: 205781866
PiperOrigin-RevId: 412352628
Change-Id: I2017c021e6baf200ad718eb661010eba56cdf39d
diff --git a/main/src/com/google/android/setupdesign/GlifLayout.java b/main/src/com/google/android/setupdesign/GlifLayout.java
index 034509d..1b8c8f8 100644
--- a/main/src/com/google/android/setupdesign/GlifLayout.java
+++ b/main/src/com/google/android/setupdesign/GlifLayout.java
@@ -203,6 +203,14 @@
protected void updateLandscapeMiddleHorizontalSpacing() {
int horizontalSpacing =
getResources().getDimensionPixelSize(R.dimen.sud_glif_land_middle_horizontal_spacing);
+ if (shouldApplyPartnerResource()
+ && PartnerConfigHelper.get(getContext())
+ .isPartnerConfigAvailable(PartnerConfig.CONFIG_LAND_MIDDLE_HORIZONTAL_SPACING)) {
+ horizontalSpacing =
+ (int)
+ PartnerConfigHelper.get(getContext())
+ .getDimension(getContext(), PartnerConfig.CONFIG_LAND_MIDDLE_HORIZONTAL_SPACING);
+ }
View headerView = this.findManagedViewById(R.id.sud_landscape_header_area);
if (headerView != null) {