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

Commit b41b5b98 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 13277861 from e8d088d9 to 25Q3-release

Change-Id: I18b93f6374bb3b7ec8094e4897c1a246e8627de4
parents 7f76f6cc e8d088d9
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -189,10 +189,14 @@ public class BaseIconFactory implements AutoCloseable {
    @NonNull
    public AdaptiveIconDrawable createShapedAdaptiveIcon(Bitmap iconBitmap) {
        Drawable drawable = new FixedSizeBitmapDrawable(iconBitmap);
        float inset = getExtraInsetFraction();
        if (getIconScale() < 1f) {
            drawable = createScaledDrawable(drawable, 1 / getIconScale());
        }
        float inset = getExtraInsetFraction() * getIconScale();
        inset = inset / (1 + 2 * inset);
        return new AdaptiveIconDrawable(new ColorDrawable(Color.BLACK),
                new InsetDrawable(drawable, inset, inset, inset, inset));
        return new AdaptiveIconDrawable(new ColorDrawable(BLACK),
                new InsetDrawable(drawable, inset, inset, inset, inset)
        );
    }

    @NonNull