package androidx.core.app;

import android.annotation.SuppressLint;
import android.app.Notification;
import android.app.PendingIntent;
import android.os.Build;
import androidx.annotation.DimenRes;
import androidx.annotation.Nullable;
import androidx.core.graphics.drawable.IconCompat;

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

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

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

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

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

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

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

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

    public /* synthetic */ p0(PendingIntent pendingIntent, PendingIntent pendingIntent2, IconCompat iconCompat, int i10, int i11, int i12, String str, int i13) {
        this(pendingIntent, pendingIntent2, iconCompat, i10, i11, i12, str);
    }

    @Nullable
    public static p0 fromPlatform(@Nullable Notification.BubbleMetadata bubbleMetadata) {
        if (bubbleMetadata == null) {
            return null;
        }
        int i10 = Build.VERSION.SDK_INT;
        if (i10 >= 30) {
            return n0.fromPlatform(bubbleMetadata);
        }
        if (i10 == 29) {
            return m0.fromPlatform(bubbleMetadata);
        }
        return null;
    }

    @Nullable
    public static Notification.BubbleMetadata toPlatform(@Nullable p0 p0Var) {
        if (p0Var == null) {
            return null;
        }
        int i10 = Build.VERSION.SDK_INT;
        if (i10 >= 30) {
            return n0.toPlatform(p0Var);
        }
        if (i10 == 29) {
            return m0.toPlatform(p0Var);
        }
        return null;
    }

    @Nullable
    public PendingIntent getDeleteIntent() {
        return this.f1621b;
    }

    @Nullable
    @SuppressLint({"InvalidNullConversion"})
    public IconCompat getIcon() {
        return this.f1622c;
    }

    @Nullable
    @SuppressLint({"InvalidNullConversion"})
    public PendingIntent getIntent() {
        return this.f1620a;
    }

    @Nullable
    public String getShortcutId() {
        return this.f1626g;
    }

    private p0(@Nullable PendingIntent pendingIntent, @Nullable PendingIntent pendingIntent2, @Nullable IconCompat iconCompat, int i10, @DimenRes int i11, int i12, @Nullable String str) {
        this.f1620a = pendingIntent;
        this.f1622c = iconCompat;
        this.f1623d = i10;
        this.f1624e = i11;
        this.f1621b = pendingIntent2;
        this.f1625f = i12;
        this.f1626g = str;
    }
}
