Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fb9e712 authored by Jon Miranda's avatar Jon Miranda
Browse files

Increase overview icon zone percentage from 20% to 22%.

This handles the case where "Home Settings" text is split into
two lines and is cropped when the user is in multi-window mode with
settings Display=Largest and Font=Largest.

Bug: 64976707
Change-Id: Ia1a4ee35a94a2fbe99f8ed25fce93a023e621147
parent 1ad3c8f6
Loading
Loading
Loading
Loading
+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>
+5 −4
Original line number Diff line number Diff line
@@ -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);
        }