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

Commit ed20edd6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Crash ealier on passing null icon" into main

parents 783e666b d0f286b0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -31,6 +31,8 @@ import androidx.annotation.Nullable;
import com.android.launcher3.icons.cache.CacheLookupFlag;
import com.android.launcher3.util.FlagOp;

import java.util.Objects;

public class BitmapInfo {

    public static final int FLAG_WORK = 1 << 0;
@@ -77,7 +79,7 @@ public class BitmapInfo {
    private BitmapInfo badgeInfo;

    public BitmapInfo(@NonNull Bitmap icon, int color) {
        this.icon = icon;
        this.icon = Objects.requireNonNull(icon);
        this.color = color;
    }