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

Commit 410ece26 authored by Jorge Gil's avatar Jorge Gil
Browse files

Make #createIconBitmap public

To allow callers to create an icon bitmap without necessarily wrapping
it as an adaptive icon, which is what happens with the public
createScaledBitmap().

Flag: EXEMPT bugfix
Bug: 342004435
Test: Work app in desktop windowing shows badged icon without it being
adaptive

Change-Id: I9b6a3c5915cc5847860782818cdd8ff47f302e5c
parent 689f571c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -374,7 +374,7 @@ public class BaseIconFactory implements AutoCloseable {
    }

    @NonNull
    protected Bitmap createIconBitmap(@Nullable final Drawable icon, final float scale) {
    public Bitmap createIconBitmap(@Nullable final Drawable icon, final float scale) {
        return createIconBitmap(icon, scale, MODE_DEFAULT);
    }