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

Commit 64a829da authored by Kshitij's avatar Kshitij
Browse files

fix: Increase icon size before DPI selection

- Fixes icon pixelation
parent e07e9f47
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);