package androidx.core.app;

import android.app.PendingIntent;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.graphics.drawable.IconCompat;
import java.util.ArrayList;
import java.util.Arrays;

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

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final boolean f1553d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final Bundle f1554e;

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

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final int f1556g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final boolean f1557h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public final boolean f1558i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final boolean f1559j;

    public f0(@Nullable IconCompat iconCompat, @Nullable CharSequence charSequence, @Nullable PendingIntent pendingIntent) {
        this(iconCompat, charSequence, pendingIntent, new Bundle(), null, true, 0, true, false, false);
    }

    @NonNull
    public f0 addExtras(@Nullable Bundle bundle) {
        if (bundle != null) {
            this.f1554e.putAll(bundle);
        }
        return this;
    }

    @NonNull
    public f0 addRemoteInput(@Nullable b2 b2Var) {
        if (this.f1555f == null) {
            this.f1555f = new ArrayList();
        }
        if (b2Var != null) {
            this.f1555f.add(b2Var);
        }
        return this;
    }

    public f0(int i10, @Nullable CharSequence charSequence, @Nullable PendingIntent pendingIntent) {
        this(i10 != 0 ? IconCompat.createWithResource(null, "", i10) : null, charSequence, pendingIntent, new Bundle(), null, true, 0, true, false, false);
    }

    private f0(@Nullable IconCompat iconCompat, @Nullable CharSequence charSequence, @Nullable PendingIntent pendingIntent, @NonNull Bundle bundle, @Nullable b2[] b2VarArr, boolean z10, int i10, boolean z11, boolean z12, boolean z13) {
        this.f1553d = true;
        this.f1557h = true;
        this.f1550a = iconCompat;
        this.f1551b = s0.limitCharSequenceLength(charSequence);
        this.f1552c = pendingIntent;
        this.f1554e = bundle;
        this.f1555f = b2VarArr == null ? null : new ArrayList(Arrays.asList(b2VarArr));
        this.f1553d = z10;
        this.f1556g = i10;
        this.f1557h = z11;
        this.f1558i = z12;
        this.f1559j = z13;
    }
}
