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

Commit 0306fc15 authored by Romain Hunault's avatar Romain Hunault 🚴🏻
Browse files

Merge branch 'fix-blurred-icon-issue' into 'master'

Fix blurred icon issue: Do not scale down intrinsic width and height

See merge request e/apps/BlissLauncher!51
parents d1a87ac5 7cc900cd
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -786,7 +786,7 @@ public class AdaptiveIconDrawableCompat extends Drawable implements Drawable.Cal

    @Override
    public int getIntrinsicWidth() {
        return (int) (getMaxIntrinsicWidth() * DEFAULT_VIEW_PORT_SCALE);
        return (int) (getMaxIntrinsicWidth() * 1f);
    }

    private int getMaxIntrinsicWidth() {
@@ -806,7 +806,7 @@ public class AdaptiveIconDrawableCompat extends Drawable implements Drawable.Cal

    @Override
    public int getIntrinsicHeight() {
        return (int) (getMaxIntrinsicHeight() * DEFAULT_VIEW_PORT_SCALE);
        return (int) (getMaxIntrinsicHeight() * 1f);
    }

    private int getMaxIntrinsicHeight() {