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

Commit 98908b46 authored by Liran Binyamin's avatar Liran Binyamin
Browse files

Fix black bubble icon

Fallback on the AdaptiveIconDrawable's draw method when there are
no background and foreground drawables.

Flag: EXEMPT bug fix
Fixes: 409932325
Test: manual
       - create bubble
       - mark conversation as important
       - observe bubble icon
Change-Id: I415b5865a6f3fc89693f976094e41114aa02a6c3
parent b164d52b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -526,7 +526,9 @@ public class BaseIconFactory implements AutoCloseable {
            @NonNull AdaptiveIconDrawable drawable,
            @NonNull Path shapePath
    ) {
        if (!Flags.enableLauncherIconShapes()) {
        Drawable background = drawable.getBackground();
        Drawable foreground = drawable.getForeground();
        if (!Flags.enableLauncherIconShapes() || (background == null && foreground == null)) {
            drawable.draw(canvas);
            return;
        }