package androidx.core.app;

import android.app.PendingIntent;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.graphics.drawable.IconCompat;

/* JADX INFO: loaded from: classes.dex */
public final class o0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final PendingIntent f1608a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final IconCompat f1609b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f1610c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public int f1611d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public int f1612e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public PendingIntent f1613f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public String f1614g;

    public o0(PendingIntent pendingIntent, IconCompat iconCompat) {
        if (pendingIntent == null) {
            throw new NullPointerException("Bubble requires non-null pending intent");
        }
        if (iconCompat == null) {
            throw new NullPointerException("Bubbles require non-null icon");
        }
        this.f1608a = pendingIntent;
        this.f1609b = iconCompat;
    }

    public final p0 a() {
        String str = this.f1614g;
        if (str == null && this.f1608a == null) {
            throw new NullPointerException("Must supply pending intent or shortcut to bubble");
        }
        if (str == null && this.f1609b == null) {
            throw new NullPointerException("Must supply an icon or shortcut for the bubble");
        }
        p0 p0Var = new p0(this.f1608a, this.f1613f, this.f1609b, this.f1610c, this.f1611d, this.f1612e, str, 0);
        p0Var.f1625f = this.f1612e;
        return p0Var;
    }

    public final void b(int i10, boolean z10) {
        if (z10) {
            this.f1612e = i10 | this.f1612e;
        } else {
            this.f1612e = (~i10) & this.f1612e;
        }
    }

    @NonNull
    public o0 setDeleteIntent(@Nullable PendingIntent pendingIntent) {
        this.f1613f = pendingIntent;
        return this;
    }
}
