.class public Landroidx/work/impl/diagnostics/DiagnosticsReceiver;
.super Landroid/content/BroadcastReceiver;
.source ""


# static fields
.field public static final a:Ljava/lang/String;


# direct methods
.method public static constructor <clinit>()V
    .registers 1

    const-string v0, "DiagnosticsRcvr"

    invoke-static {v0}, Ll1/i;->e(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Landroidx/work/impl/diagnostics/DiagnosticsReceiver;->a:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .registers 7

    if-nez p2, :cond_3

    return-void

    :cond_3
    invoke-static {}, Ll1/i;->c()Ll1/i;

    move-result-object p2

    sget-object v0, Landroidx/work/impl/diagnostics/DiagnosticsReceiver;->a:Ljava/lang/String;

    const/4 v1, 0x0

    new-array v2, v1, [Ljava/lang/Throwable;

    const-string v3, "Requesting diagnostics"

    invoke-virtual {p2, v0, v3, v2}, Ll1/i;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Throwable;)V

    .line 1
    :try_start_11
    invoke-static {p1}, Lm1/j;->b(Landroid/content/Context;)Lm1/j;

    move-result-object p1

    .line 2
    const-class p2, Landroidx/work/impl/workers/DiagnosticsWorker;

    .line 3
    new-instance v0, Ll1/j$a;

    invoke-direct {v0, p2}, Ll1/j$a;-><init>(Ljava/lang/Class;)V

    invoke-virtual {v0}, Ll1/p$a;->a()Ll1/p;

    move-result-object p2

    check-cast p2, Ll1/j;

    .line 4
    invoke-virtual {p1, p2}, Ll1/o;->a(Ll1/p;)Ll1/k;
    :try_end_25
    .catch Ljava/lang/IllegalStateException; {:try_start_11 .. :try_end_25} :catch_26

    goto :goto_37

    :catch_26
    move-exception p1

    invoke-static {}, Ll1/i;->c()Ll1/i;

    move-result-object p2

    sget-object v0, Landroidx/work/impl/diagnostics/DiagnosticsReceiver;->a:Ljava/lang/String;

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Throwable;

    aput-object p1, v2, v1

    const-string p1, "WorkManager is not initialized"

    invoke-virtual {p2, v0, p1, v2}, Ll1/i;->b(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Throwable;)V

    :goto_37
    return-void
.end method
