.class Lcom/moji/mjweather/voice/VoiceContentMgr$1;
.super Lcom/moji/tool/thread/task/MJAsyncTask;
.source "VoiceContentMgr.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Landroid/content/Context;ZZLcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;)V
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/tool/thread/task/MJAsyncTask<",
        "Ljava/lang/Void;",
        "Ljava/lang/Void;",
        "Ljava/lang/Boolean;",
        ">;"
    }
.end annotation


# instance fields
.field final a:I

.field final b:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field c:Landroid/app/Dialog;

.field d:Landroid/widget/TextView;

.field e:Z

.field final f:Landroid/os/Handler;

.field final synthetic g:Landroid/content/Context;

.field final synthetic h:Z

.field final synthetic i:Ljava/lang/String;

.field final synthetic j:Ljava/lang/String;

.field final synthetic k:Lcom/moji/mjweather/voice/VoiceContentMgr;

.field private l:Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;

.field private m:Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/voice/VoiceContentMgr;Lcom/moji/tool/thread/ThreadPriority;Landroid/content/Context;ZLjava/lang/String;Ljava/lang/String;)V
    .locals 0

    .line 153
    iput-object p1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    iput-object p3, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->g:Landroid/content/Context;

    iput-boolean p4, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->h:Z

    iput-object p5, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->i:Ljava/lang/String;

    iput-object p6, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->j:Ljava/lang/String;

    invoke-direct {p0, p2}, Lcom/moji/tool/thread/task/MJAsyncTask;-><init>(Lcom/moji/tool/thread/ThreadPriority;)V

    const/4 p1, 0x2

    .line 157
    iput p1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->a:I

    .line 158
    new-instance p1, Ljava/util/Vector;

    invoke-direct {p1}, Ljava/util/Vector;-><init>()V

    iput-object p1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    const/4 p1, 0x0

    .line 161
    iput-boolean p1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->e:Z

    .line 163
    new-instance p1, Lcom/moji/mjweather/voice/VoiceContentMgr$1$1;

    invoke-direct {p1, p0}, Lcom/moji/mjweather/voice/VoiceContentMgr$1$1;-><init>(Lcom/moji/mjweather/voice/VoiceContentMgr$1;)V

    iput-object p1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->f:Landroid/os/Handler;

    return-void
.end method


# virtual methods
.method protected varargs a([Ljava/lang/Void;)Ljava/lang/Boolean;
    .locals 9

    const-string p1, "VoiceContentMgr"

    .line 222
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "doInBackground ignoreNetWork:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-boolean v1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->h:Z

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

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

    move-result-object v0

    invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 226
    new-instance p1, Lcom/moji/mjweather/assshop/voice/VoicePathManger;

    invoke-direct {p1}, Lcom/moji/mjweather/assshop/voice/VoicePathManger;-><init>()V

    const-string v0, "VoiceContentMgr"

    .line 228
    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, " downloadList.size "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 229
    :goto_0
    iget-object v2, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v2

    if-ge v1, v2, :cond_6

    .line 230
    iget-object v2, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    invoke-virtual {v2, v1}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-virtual {p1, v2}, Lcom/moji/mjweather/assshop/voice/VoicePathManger;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string v3, "VoiceContentMgr"

    .line 231
    new-instance v4, Ljava/lang/StringBuilder;

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

    const-string v5, " file name "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 232
    new-instance v3, Lcom/moji/download/MJDownloadRequest;

    new-instance v4, Ljava/lang/StringBuilder;

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

    iget-object v5, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->i:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

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

    iget-object v6, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->j:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v6, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    invoke-virtual {v6, v1}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    iget-boolean v6, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->h:Z

    invoke-direct {v3, v4, v5, v6}, Lcom/moji/download/MJDownloadRequest;-><init>(Ljava/lang/String;Ljava/lang/String;Z)V

    const/4 v4, 0x0

    const/4 v5, 0x0

    :goto_1
    if-nez v4, :cond_1

    add-int/lit8 v6, v5, 0x1

    const/4 v7, 0x2

    if-ge v5, v7, :cond_1

    .line 237
    :try_start_0
    invoke-static {}, Lcom/moji/download/MJDownLoadManager;->a()Lcom/moji/download/MJDownLoadManager;

    move-result-object v4

    invoke-virtual {v4, v3}, Lcom/moji/download/MJDownLoadManager;->b(Lcom/moji/download/MJDownloadRequest;)Z

    move-result v4
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    move-exception v4

    const-string v5, "VoiceContentMgr"

    .line 239
    invoke-static {v5, v4}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    const/4 v4, 0x0

    :goto_2
    const-string v5, "VoiceContentMgr"

    .line 242
    new-instance v7, Ljava/lang/StringBuilder;

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

    const-string v8, "download success:"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v8, ", retry:"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v5, v7}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    if-nez v4, :cond_0

    const-wide/16 v7, 0xc8

    .line 244
    invoke-static {v7, v8}, Landroid/os/SystemClock;->sleep(J)V

    :cond_0
    move v5, v6

    goto :goto_1

    :cond_1
    if-nez v4, :cond_4

    const-string v3, "VoiceContentMgr"

    .line 249
    new-instance v4, Ljava/lang/StringBuilder;

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

    const-string v5, "download fail: "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v5, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->i:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v3, v2}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 250
    new-instance v2, Ljava/lang/StringBuilder;

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

    sget-object v3, Lcom/moji/mjweather/voice/VoiceConstants;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    invoke-virtual {v3, v1}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/moji/tool/FileTool;->d(Ljava/lang/String;)Z

    .line 251
    iget-object v2, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    invoke-virtual {v2, v1}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    const-string v3, "city"

    invoke-virtual {v2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_3

    const/4 v2, 0x0

    .line 252
    :goto_3
    iget-object v3, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    invoke-static {v3}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Lcom/moji/mjweather/voice/VoiceContentMgr;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-ge v2, v3, :cond_4

    .line 253
    iget-object v3, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    invoke-static {v3}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Lcom/moji/mjweather/voice/VoiceContentMgr;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    if-eqz v3, :cond_2

    iget-object v3, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    invoke-static {v3}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Lcom/moji/mjweather/voice/VoiceContentMgr;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    iget-object v4, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    invoke-virtual {v4, v1}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 254
    iget-object v3, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    invoke-static {v3}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Lcom/moji/mjweather/voice/VoiceContentMgr;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    goto :goto_4

    :cond_2
    add-int/lit8 v2, v2, 0x1

    goto :goto_3

    .line 259
    :cond_3
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    return-object p1

    .line 262
    :cond_4
    :goto_4
    iget-boolean v2, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->e:Z

    if-eqz v2, :cond_5

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    return-object p1

    .line 263
    :cond_5
    iget-object v2, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->f:Landroid/os/Handler;

    const/16 v3, 0x7b

    invoke-virtual {v2, v3}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v2

    .line 264
    iput v1, v2, Landroid/os/Message;->arg1:I

    .line 265
    iget-object v3, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->f:Landroid/os/Handler;

    invoke-virtual {v3, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_0

    .line 269
    :cond_6
    invoke-static {}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a()Lcom/moji/mjweather/voice/VoiceContentMgr;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/mjweather/voice/VoiceContentMgr;->c()Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->l:Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;

    .line 270
    invoke-static {}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a()Lcom/moji/mjweather/voice/VoiceContentMgr;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/mjweather/voice/VoiceContentMgr;->b()Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->m:Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;

    const/4 p1, 0x1

    .line 271
    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    return-object p1
.end method

.method protected bridge synthetic a([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 0

    .line 153
    check-cast p1, [Ljava/lang/Void;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->a([Ljava/lang/Void;)Ljava/lang/Boolean;

    move-result-object p1

    return-object p1
.end method

.method protected a()V
    .locals 5

    .line 174
    invoke-super {p0}, Lcom/moji/tool/thread/task/MJAsyncTask;->a()V

    const-string v0, "VoiceContentMgr"

    const-string v1, "onPreExecute"

    .line 175
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 176
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->clear()V

    .line 177
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    invoke-static {v0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Lcom/moji/mjweather/voice/VoiceContentMgr;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    const-string v2, "VoiceContentMgr"

    .line 178
    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "playList: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 179
    iget-object v2, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    invoke-static {v2, v1}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Lcom/moji/mjweather/voice/VoiceContentMgr;Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 180
    iget-object v2, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    invoke-virtual {v2, v1}, Ljava/util/Vector;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 181
    iget-object v2, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    invoke-virtual {v2, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_1
    const-string v0, "VoiceContentMgr"

    const-string v1, "onPreExecute 1"

    .line 185
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 186
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    invoke-static {v0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->b(Lcom/moji/mjweather/voice/VoiceContentMgr;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_2
    :goto_1
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 189
    iget-object v2, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    invoke-static {v2, v1}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Lcom/moji/mjweather/voice/VoiceContentMgr;Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2

    .line 190
    iget-object v2, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    invoke-virtual {v2, v1}, Ljava/util/Vector;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    .line 191
    iget-object v2, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    invoke-virtual {v2, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_3
    const-string v0, "VoiceContentMgr"

    const-string v1, "onPreExecute 2"

    .line 195
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 196
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-eqz v0, :cond_4

    .line 197
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    invoke-static {v0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->c(Lcom/moji/mjweather/voice/VoiceContentMgr;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0b00f7

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f090661

    .line 198
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->d:Landroid/widget/TextView;

    .line 199
    iget-object v1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->d:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

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

    const v3, 0x7f0e0446

    invoke-static {v3}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, " 0/"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->b:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 200
    new-instance v1, Landroid/app/Dialog;

    iget-object v2, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->g:Landroid/content/Context;

    const v3, 0x7f0f0034

    invoke-direct {v1, v2, v3}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    iput-object v1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->c:Landroid/app/Dialog;

    .line 201
    iget-object v1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->c:Landroid/app/Dialog;

    invoke-virtual {v1, v0}, Landroid/app/Dialog;->setContentView(Landroid/view/View;)V

    .line 202
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->c:Landroid/app/Dialog;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    .line 203
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->c:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I

    move-result v1

    int-to-float v1, v1

    const v2, 0x3f0ccccd    # 0.55f

    mul-float v1, v1, v2

    float-to-int v1, v1

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->width:I

    .line 204
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->c:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I

    move-result v1

    int-to-float v1, v1

    mul-float v1, v1, v2

    float-to-int v1, v1

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->height:I

    .line 205
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->c:Landroid/app/Dialog;

    new-instance v1, Lcom/moji/mjweather/voice/VoiceContentMgr$1$2;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/voice/VoiceContentMgr$1$2;-><init>(Lcom/moji/mjweather/voice/VoiceContentMgr$1;)V

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V

    .line 212
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->g:Landroid/content/Context;

    instance-of v0, v0, Landroid/app/Activity;

    if-eqz v0, :cond_4

    .line 213
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->c:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    :cond_4
    const-string v0, "VoiceContentMgr"

    const-string v1, "onPreExecute 3"

    .line 217
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method protected a(Ljava/lang/Boolean;)V
    .locals 3

    const-string v0, "VoiceContentMgr"

    const-string v1, "onPostExecute"

    .line 276
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 277
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->c:Landroid/app/Dialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->c:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 279
    :try_start_0
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->g:Landroid/content/Context;

    instance-of v0, v0, Landroid/app/Activity;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->g:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->isFinishing()Z

    move-result v0

    if-nez v0, :cond_0

    .line 280
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->c:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "VoiceContentMgr"

    .line 283
    invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 287
    :cond_0
    :goto_0
    iget-boolean v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->e:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    invoke-static {v0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->d(Lcom/moji/mjweather/voice/VoiceContentMgr;)Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 288
    iget-object p1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    invoke-static {p1}, Lcom/moji/mjweather/voice/VoiceContentMgr;->d(Lcom/moji/mjweather/voice/VoiceContentMgr;)Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

    move-result-object p1

    invoke-interface {p1}, Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;->a()V

    goto :goto_1

    .line 289
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    invoke-static {v0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->d(Lcom/moji/mjweather/voice/VoiceContentMgr;)Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 290
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    invoke-static {v0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->d(Lcom/moji/mjweather/voice/VoiceContentMgr;)Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

    move-result-object v0

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    iget-object v1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->l:Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;

    iget-object v2, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->m:Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;

    invoke-interface {v0, p1, v1, v2}, Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;->a(ZLcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;)V

    .line 292
    :cond_2
    :goto_1
    iget-object p1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->k:Lcom/moji/mjweather/voice/VoiceContentMgr;

    const/4 v0, 0x0

    invoke-static {p1, v0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Lcom/moji/mjweather/voice/VoiceContentMgr;Z)Z

    return-void
.end method

.method protected bridge synthetic a(Ljava/lang/Object;)V
    .locals 0

    .line 153
    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->a(Ljava/lang/Boolean;)V

    return-void
.end method
