package o;

import android.content.Intent;
import android.content.pm.ShortcutInfo;
import android.os.Build;
import android.os.PersistableBundle;
import android.text.TextUtils;
import androidx.core.graphics.drawable.IconCompat;
import ir.devixor.app.service.ForegroundService;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.z80, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C3072z80 {
    public ForegroundService a;
    public String b;
    public Intent[] c;
    public String d;
    public String e;
    public IconCompat f;
    public C2124p9 g;
    public boolean h;
    public PersistableBundle i;

    public final ShortcutInfo a() {
        AbstractC0955cv.i();
        ShortcutInfo.Builder intents = AbstractC0955cv.d(this.a, this.b).setShortLabel(this.d).setIntents(this.c);
        IconCompat iconCompat = this.f;
        if (iconCompat != null) {
            intents.setIcon(iconCompat.h(this.a));
        }
        if (!TextUtils.isEmpty(this.e)) {
            intents.setLongLabel(this.e);
        }
        if (!TextUtils.isEmpty(null)) {
            intents.setDisabledMessage(null);
        }
        C2124p9 c2124p9 = this.g;
        if (c2124p9 != null) {
            intents.setCategories(c2124p9);
        }
        intents.setRank(0);
        PersistableBundle persistableBundle = this.i;
        if (persistableBundle != null) {
            intents.setExtras(persistableBundle);
        }
        int i = Build.VERSION.SDK_INT;
        if (i >= 29) {
            intents.setLongLived(this.h);
        } else {
            if (this.i == null) {
                this.i = new PersistableBundle();
            }
            this.i.putBoolean("extraLongLived", this.h);
            intents.setExtras(this.i);
        }
        if (i >= 33) {
            E0.g(intents);
        }
        return intents.build();
    }
}
