Loading res/values/config.xml +1 −1 Original line number Diff line number Diff line <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> Loading src/com/android/launcher3/DeviceProfile.java +5 −4 Original line number Diff line number Diff line Loading @@ -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) { Loading Loading @@ -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); } Loading Loading
res/values/config.xml +1 −1 Original line number Diff line number Diff line <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> Loading
src/com/android/launcher3/DeviceProfile.java +5 −4 Original line number Diff line number Diff line Loading @@ -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) { Loading Loading @@ -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); } Loading