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

Commit c77d1537 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Use correct icon overlap factor

parent cb66f322
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -25,7 +25,6 @@ import static com.android.launcher3.InvariantDeviceProfile.INDEX_TWO_PANEL_LANDS
import static com.android.launcher3.InvariantDeviceProfile.INDEX_TWO_PANEL_PORTRAIT;
import static com.android.launcher3.Utilities.dpiFromPx;
import static com.android.launcher3.Utilities.pxFromSp;
import static com.android.launcher3.folder.ClippedFolderIconLayoutRule.ICON_OVERLAP_FACTOR;
import static com.android.launcher3.icons.IconNormalizer.ICON_VISIBLE_AREA_FACTOR;
import static com.android.launcher3.taskbar.TaskbarManager.ENABLE_TASKBAR;
import static com.android.launcher3.testing.shared.ResourceUtils.INVALID_RESOURCE_HANDLE;
@@ -1022,7 +1021,7 @@ public class DeviceProfile {

        if (wm.getNavigationMode(context) != NavigationMode.NO_BUTTON && !isVerticalBarLayout()) {
            int hotseatIconMargin = Math.abs(hotseatCellHeightPx - iconSizePx);
            hotseatBarSizePx += (int) (hotseatIconMargin * ICON_OVERLAP_FACTOR);
            hotseatBarSizePx += (int) (hotseatIconMargin * ClippedFolderIconLayoutRule.getIconOverlapFactor());
        }
    }