package p8;

import android.app.NotificationManager;
import androidx.core.app.p;
import kotlin.jvm.internal.t;

/* loaded from: classes.dex */
public final class c implements a {

    /* renamed from: a, reason: collision with root package name */
    private final ja.d f32345a;

    /* renamed from: b, reason: collision with root package name */
    private final t7.c f32346b;

    /* renamed from: c, reason: collision with root package name */
    private final NotificationManager f32347c;

    public c(ja.d sharedPreferencesService, t7.c contextService) {
        t.g(sharedPreferencesService, "sharedPreferencesService");
        t.g(contextService, "contextService");
        this.f32345a = sharedPreferencesService;
        this.f32346b = contextService;
        Object systemService = contextService.a().getSystemService("notification");
        t.e(systemService, "null cannot be cast to non-null type android.app.NotificationManager");
        this.f32347c = (NotificationManager) systemService;
    }

    @Override // p8.a
    public boolean a() {
        return p.b(this.f32346b.a()).a();
    }

    @Override // p8.a
    public boolean b(z7.c pushNotificationChannelCode) {
        t.g(pushNotificationChannelCode, "pushNotificationChannelCode");
        return this.f32347c.getNotificationChannel(pushNotificationChannelCode.name()).getImportance() != 0;
    }
}
