.class public Lv1/o$a;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lv1/o;->a(Landroid/content/Context;Ljava/util/UUID;Ll1/d;)Lq7/a;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = null
.end annotation


# instance fields
.field public final synthetic r:Lw1/c;

.field public final synthetic s:Ljava/util/UUID;

.field public final synthetic t:Ll1/d;

.field public final synthetic u:Landroid/content/Context;

.field public final synthetic v:Lv1/o;


# direct methods
.method public constructor <init>(Lv1/o;Lw1/c;Ljava/util/UUID;Ll1/d;Landroid/content/Context;)V
    .registers 6

    iput-object p1, p0, Lv1/o$a;->v:Lv1/o;

    iput-object p2, p0, Lv1/o$a;->r:Lw1/c;

    iput-object p3, p0, Lv1/o$a;->s:Ljava/util/UUID;

    iput-object p4, p0, Lv1/o$a;->t:Ll1/d;

    iput-object p5, p0, Lv1/o$a;->u:Landroid/content/Context;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 4

    :try_start_0
    iget-object v0, p0, Lv1/o$a;->r:Lw1/c;

    .line 1
    iget-object v0, v0, Lw1/a;->r:Ljava/lang/Object;

    instance-of v0, v0, Lw1/a$c;

    if-nez v0, :cond_41

    .line 2
    iget-object v0, p0, Lv1/o$a;->s:Ljava/util/UUID;

    invoke-virtual {v0}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lv1/o$a;->v:Lv1/o;

    iget-object v1, v1, Lv1/o;->c:Lu1/q;

    check-cast v1, Lu1/r;

    invoke-virtual {v1, v0}, Lu1/r;->f(Ljava/lang/String;)Landroidx/work/f;

    move-result-object v1

    if-eqz v1, :cond_39

    invoke-virtual {v1}, Landroidx/work/f;->b()Z

    move-result v1

    if-nez v1, :cond_39

    iget-object v1, p0, Lv1/o$a;->v:Lv1/o;

    iget-object v1, v1, Lv1/o;->b:Lt1/a;

    iget-object v2, p0, Lv1/o$a;->t:Ll1/d;

    check-cast v1, Lm1/c;

    invoke-virtual {v1, v0, v2}, Lm1/c;->f(Ljava/lang/String;Ll1/d;)V

    iget-object v1, p0, Lv1/o$a;->u:Landroid/content/Context;

    iget-object v2, p0, Lv1/o$a;->t:Ll1/d;

    invoke-static {v1, v0, v2}, Landroidx/work/impl/foreground/a;->b(Landroid/content/Context;Ljava/lang/String;Ll1/d;)Landroid/content/Intent;

    move-result-object v0

    iget-object v1, p0, Lv1/o$a;->u:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    goto :goto_41

    :cond_39
    const-string v0, "Calls to setForegroundAsync() must complete before a ListenableWorker signals completion of work by returning an instance of Result."

    new-instance v1, Ljava/lang/IllegalStateException;

    invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v1

    :cond_41
    :goto_41
    iget-object v0, p0, Lv1/o$a;->r:Lw1/c;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lw1/c;->j(Ljava/lang/Object;)Z
    :try_end_47
    .catchall {:try_start_0 .. :try_end_47} :catchall_48

    goto :goto_4e

    :catchall_48
    move-exception v0

    iget-object v1, p0, Lv1/o$a;->r:Lw1/c;

    invoke-virtual {v1, v0}, Lw1/c;->k(Ljava/lang/Throwable;)Z

    :goto_4e
    return-void
.end method
