[automerger] Increase overview icon zone percentage from 20% to 22%. am: 7fb9e712e8
Change-Id: Ia8eec3f9a609a74a82dd4328d95c8cc6587ac1c0
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<resources>
|
||||
<!-- Dynamic Grid -->
|
||||
<!-- Out of 100, the percent of space the overview bar should try and take vertically. -->
|
||||
<integer name="config_dynamic_grid_overview_icon_zone_percentage">20</integer>
|
||||
<integer name="config_dynamic_grid_overview_icon_zone_percentage">22</integer>
|
||||
|
||||
<!-- Miscellaneous -->
|
||||
<bool name="config_largeHeap">false</bool>
|
||||
|
||||
@@ -555,9 +555,9 @@ public class DeviceProfile {
|
||||
|
||||
int getOverviewModeButtonBarHeight() {
|
||||
int zoneHeight = (int) (overviewModeIconZoneRatio * availableHeightPx);
|
||||
zoneHeight = Math.min(overviewModeMaxIconZoneHeightPx,
|
||||
Math.max(overviewModeMinIconZoneHeightPx, zoneHeight));
|
||||
return zoneHeight;
|
||||
return Utilities.boundToRange(zoneHeight,
|
||||
overviewModeMinIconZoneHeightPx,
|
||||
overviewModeMaxIconZoneHeightPx);
|
||||
}
|
||||
|
||||
public static int calculateCellWidth(int width, int countX) {
|
||||
@@ -693,7 +693,8 @@ public class DeviceProfile {
|
||||
|
||||
lp = (FrameLayout.LayoutParams) overviewMode.getLayoutParams();
|
||||
lp.width = Math.min(availableWidthPx, maxWidth);
|
||||
lp.height = getOverviewModeButtonBarHeight() + mInsets.bottom;
|
||||
lp.height = getOverviewModeButtonBarHeight();
|
||||
lp.bottomMargin = mInsets.bottom;
|
||||
overviewMode.setLayoutParams(lp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user