package androidx.work.impl.diagnostics;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import androidx.work.impl.workers.DiagnosticsWorker;
import z5.k;
import z5.m;
import z5.u;

/* loaded from: classes.dex */
public class DiagnosticsReceiver extends BroadcastReceiver {

    /* renamed from: a, reason: collision with root package name */
    private static final String f5967a = k.f("DiagnosticsRcvr");

    @Override // android.content.BroadcastReceiver
    public void onReceive(Context context, Intent intent) {
        if (intent == null) {
            return;
        }
        k.c().a(f5967a, "Requesting diagnostics", new Throwable[0]);
        try {
            u.e(context).d(m.d(DiagnosticsWorker.class));
        } catch (IllegalStateException e10) {
            k.c().b(f5967a, "WorkManager is not initialized", e10);
        }
    }
}
