i.smali

.class public Lcom/fulishe/fs/l/i;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lcom/xinmeng/shadow/interfaces/j;


# instance fields
.field public a:Landroid/content/Context;

.field public b:Lcom/fulishe/fs/k/a;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/fulishe/fs/k/a;)V
    .registers 3

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

    iput-object p1, p0, Lcom/fulishe/fs/l/i;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/fulishe/fs/l/i;->b:Lcom/fulishe/fs/k/a;

    return-void
.end method


# virtual methods
.method public j()Ljava/lang/String;
    .registers 2

    const-string v0, "sync_download_status"

    return-object v0
.end method

.method public k()Lcom/xinmeng/shadow/interfaces/l;
    .registers 2

    sget-object v0, Lcom/xinmeng/shadow/interfaces/l;->d:Lcom/xinmeng/shadow/interfaces/l;

    return-object v0
.end method

.method public run()V
    .registers 4

    iget-object v0, p0, Lcom/fulishe/fs/l/i;->b:Lcom/fulishe/fs/k/a;

    if-nez v0, :cond_5

    :goto_4
    return-void

    :cond_5
    :try_start_5
    invoke-virtual {v0}, Lcom/fulishe/fs/k/a;->e()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/fulishe/fs/l/i;->a:Landroid/content/Context;

    invoke-static {v1, v0}, Lcom/fulishe/fs/a/d;->a(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_19

    iget-object v0, p0, Lcom/fulishe/fs/l/i;->b:Lcom/fulishe/fs/k/a;

    invoke-interface {v0}, Lcom/fulishe/fs/k/y;->K()V

    goto :goto_4

    :catch_17
    move-exception v0

    goto :goto_4

    :cond_19
    iget-object v0, p0, Lcom/fulishe/fs/l/i;->b:Lcom/fulishe/fs/k/a;

    invoke-virtual {v0}, Lcom/fulishe/fs/k/a;->x()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/io/File;

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

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_3c

    new-instance v1, Lcom/fulishe/fs/l/e;

    invoke-direct {v1}, Lcom/fulishe/fs/l/e;-><init>()V

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Lcom/fulishe/fs/l/e;->a(I)V

    invoke-virtual {v1, v0}, Lcom/fulishe/fs/l/e;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/fulishe/fs/l/i;->b:Lcom/fulishe/fs/k/a;

    invoke-interface {v0, v1}, Lcom/fulishe/fs/k/y;->c(Lcom/fulishe/fs/l/e;)V

    goto :goto_4

    :cond_3c
    iget-object v0, p0, Lcom/fulishe/fs/l/i;->b:Lcom/fulishe/fs/k/a;

    invoke-virtual {v0}, Lcom/fulishe/fs/k/a;->y()V
    :try_end_41
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_41} :catch_17

    goto :goto_4
.end method