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

Commit 7cc900cd authored by Amit Kumar's avatar Amit Kumar 💻
Browse files

Do not scale down intrinsic width and height

parent d1a87ac5
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() {