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

Commit 94264d6d authored by Kshitij's avatar Kshitij
Browse files

feat: Set icon scale to upto 1.4f dynamically

parent 81cc5f21
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -432,8 +432,9 @@ public class InvariantDeviceProfile implements OnSharedPreferenceChangeListener
        for (WindowBounds bounds : displayInfo.supportedBounds) {
            boolean isTablet = displayInfo.isTablet(bounds);
            if (isTablet) {
                iconSize[INDEX_DEFAULT] *= 1.6f;
                iconSize[INDEX_LANDSCAPE] *= 1.6f;
                Configuration config = new Configuration(context.getResources().getConfiguration());
                iconSize[INDEX_DEFAULT] *= config.smallestScreenWidthDp < 660 ? 1.15f : 1.4f;
                iconSize[INDEX_LANDSCAPE] *= config.smallestScreenWidthDp < 660 ? 1.15f : 1.4f;
                break;
            }
        }