package com.google.android.gms.measurement.internal;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import o.AbstractC1900mq0;
import o.Fr0;
import o.Kr0;
import o.Nq0;
import o.RunnableC1433hu0;
import o.Xv0;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class zzw extends BroadcastReceiver {
    public final Kr0 a;

    public zzw(Kr0 kr0) {
        this.a = kr0;
    }

    @Override // android.content.BroadcastReceiver
    public final void onReceive(Context context, Intent intent) {
        Kr0 kr0 = this.a;
        if (intent == null) {
            Nq0 nq0 = kr0.f;
            Kr0.l(nq0);
            nq0.i.b("App receiver called with null intent");
            return;
        }
        String action = intent.getAction();
        if (action == null) {
            Nq0 nq02 = kr0.f;
            Kr0.l(nq02);
            nq02.i.b("App receiver called with null action");
            return;
        }
        int iHashCode = action.hashCode();
        if (iHashCode != -1928239649) {
            if (iHashCode == 1279883384 && action.equals("com.google.android.gms.measurement.BATCHES_AVAILABLE")) {
                Nq0 nq03 = kr0.f;
                Kr0.l(nq03);
                nq03.n.b("[sgtm] App Receiver notified batches are available");
                Fr0 fr0 = kr0.g;
                Kr0.l(fr0);
                fr0.B(new RunnableC1433hu0(2, this));
                return;
            }
        } else if (action.equals("com.google.android.gms.measurement.TRIGGERS_AVAILABLE")) {
            Xv0.a();
            if (kr0.d.C(null, AbstractC1900mq0.Q0)) {
                Nq0 nq04 = kr0.f;
                Kr0.l(nq04);
                nq04.n.b("App receiver notified triggers are available");
                Fr0 fr02 = kr0.g;
                Kr0.l(fr02);
                fr02.B(new RunnableC1433hu0(3, kr0));
                return;
            }
            return;
        }
        Nq0 nq05 = kr0.f;
        Kr0.l(nq05);
        nq05.i.b("App receiver called with unknown action");
    }
}
