Merge "Prevent doubling up on split placeholder insets" into tm-qpr-dev

This commit is contained in:
Jeremy Sim authored and Android (Google) Code Review committed 2022-10-20 20:59:49 +00:00
commit 8edca84cd5
3 files changed
+38 -17

No files matched your search

@@ -218,6 +218,9 @@ public class DeviceProfile {
public int overviewRowSpacing;
public int overviewGridSideMargin;
// Split staging
public int splitPlaceholderInset;
// Widgets
private final ViewScaleProvider mViewScaleProvider;
@@ -459,6 +462,8 @@ public class DeviceProfile {
overviewRowSpacing = res.getDimensionPixelSize(R.dimen.overview_grid_row_spacing);
overviewGridSideMargin = res.getDimensionPixelSize(R.dimen.overview_grid_side_margin);
splitPlaceholderInset = res.getDimensionPixelSize(R.dimen.split_placeholder_inset);
// Calculate all of the remaining variables.
extraSpace = updateAvailableDimensions(res);