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

Commit 56696038 authored by Kshitij's avatar Kshitij
Browse files

Merge branch '2611os-t-blisslauncher-iconpixelation' into 'v1-t-tablet'

fix: Increase icon size before DPI selection

See merge request e/os/BlissLauncher3!53
parents e07e9f47 64a829da
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -387,10 +387,6 @@ public class InvariantDeviceProfile implements OnSharedPreferenceChangeListener
        inlineNavButtonsEndSpacing = closestProfile.inlineNavButtonsEndSpacing;

        iconSize = displayOption.iconSizes;
        float maxIconSize = iconSize[0];
        for (int i = 1; i < iconSize.length; i++) {
            maxIconSize = Math.max(maxIconSize, iconSize[i]);
        }
        for (WindowBounds bounds : displayInfo.supportedBounds) {
            boolean isTablet = displayInfo.isTablet(bounds);
            if (isTablet) {
@@ -399,6 +395,10 @@ public class InvariantDeviceProfile implements OnSharedPreferenceChangeListener
                break;
            }
        }
        float maxIconSize = iconSize[0];
        for (int i = 1; i < iconSize.length; i++) {
            maxIconSize = Math.max(maxIconSize, iconSize[i]);
        }
        iconBitmapSize = ResourceUtils.pxFromDp(maxIconSize, metrics);
        fillResIconDpi = getLauncherIconDensity(iconBitmapSize);