package B;

import android.app.PendingIntent;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import androidx.core.graphics.drawable.IconCompat;
import com.martsnew.tv.R;
import java.lang.reflect.InvocationTargetException;

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

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

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

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

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

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

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

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

    public e(String str, PendingIntent pendingIntent) {
        IconCompat iconCompatA = IconCompat.a(R.drawable.common_full_open_on_phone);
        Bundle bundle = new Bundle();
        this.f467d = true;
        this.f465b = iconCompatA;
        int iIntValue = iconCompatA.f7949a;
        if (iIntValue == -1) {
            int i = Build.VERSION.SDK_INT;
            Object obj = iconCompatA.f7950b;
            if (i >= 28) {
                iIntValue = a.g(obj);
            } else {
                try {
                    iIntValue = ((Integer) obj.getClass().getMethod("getType", null).invoke(obj, null)).intValue();
                } catch (IllegalAccessException e8) {
                    Log.e("IconCompat", "Unable to get icon type " + obj, e8);
                    iIntValue = -1;
                } catch (NoSuchMethodException e9) {
                    Log.e("IconCompat", "Unable to get icon type " + obj, e9);
                    iIntValue = -1;
                } catch (InvocationTargetException e10) {
                    Log.e("IconCompat", "Unable to get icon type " + obj, e10);
                    iIntValue = -1;
                }
            }
        }
        if (iIntValue == 2) {
            this.f468e = iconCompatA.b();
        }
        this.f469f = f.b(str);
        this.f470g = pendingIntent;
        this.f464a = bundle;
        this.f466c = true;
        this.f467d = true;
    }
}
