.class public Lcom/moji/mjweather/voice/VoiceContentMgr;
.super Ljava/lang/Object;
.source "VoiceContentMgr.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;,
        Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;
    }
.end annotation


# static fields
.field private static a:Lcom/moji/mjweather/voice/VoiceContentMgr;


# instance fields
.field private final b:Landroid/content/Context;

.field private c:Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

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

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

.field private f:Z


# direct methods
.method private constructor <init>(Landroid/content/Context;)V
    .locals 1

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

    .line 51
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->d:Ljava/util/ArrayList;

    .line 52
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->e:Ljava/util/ArrayList;

    .line 71
    iput-object p1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->b:Landroid/content/Context;

    return-void
.end method

.method private a(Ljava/util/Calendar;)I
    .locals 4

    const/16 v0, 0xb

    .line 699
    invoke-virtual {p1, v0}, Ljava/util/Calendar;->get(I)I

    move-result v0

    const/16 v1, 0xa

    .line 700
    invoke-virtual {p1, v1}, Ljava/util/Calendar;->get(I)I

    move-result p1

    const-string v1, "VoiceContentMgr"

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

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

    const-string v3, "hour = "

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

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

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

    move-result-object v2

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

    const-string v1, "VoiceContentMgr"

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

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

    const-string v3, "hour12 = "

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

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

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

    move-result-object v2

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

    const/16 v1, 0xc

    if-ne v0, v1, :cond_0

    if-nez p1, :cond_0

    const/16 p1, 0xc

    :cond_0
    return p1
.end method

.method public static a()Lcom/moji/mjweather/voice/VoiceContentMgr;
    .locals 2

    .line 64
    sget-object v0, Lcom/moji/mjweather/voice/VoiceContentMgr;->a:Lcom/moji/mjweather/voice/VoiceContentMgr;

    if-nez v0, :cond_0

    .line 65
    new-instance v0, Lcom/moji/mjweather/voice/VoiceContentMgr;

    sget-object v1, Lcom/moji/mjweather/MJApplication;->sContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/moji/mjweather/voice/VoiceContentMgr;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/moji/mjweather/voice/VoiceContentMgr;->a:Lcom/moji/mjweather/voice/VoiceContentMgr;

    .line 67
    :cond_0
    sget-object v0, Lcom/moji/mjweather/voice/VoiceContentMgr;->a:Lcom/moji/mjweather/voice/VoiceContentMgr;

    return-object v0
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)Ljava/io/InputStream;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 675
    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 676
    new-instance v0, Ljava/io/File;

    new-instance v1, Ljava/lang/StringBuilder;

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

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

    new-instance p1, Ljava/io/File;

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

    invoke-virtual {p1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object p1

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

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

    move-result-object p1

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

    .line 677
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result p1

    if-eqz p1, :cond_0

    .line 678
    new-instance p1, Ljava/io/FileInputStream;

    invoke-direct {p1, v0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return-object p1
.end method

.method static synthetic a(Lcom/moji/mjweather/voice/VoiceContentMgr;)Ljava/util/ArrayList;
    .locals 0

    .line 45
    iget-object p0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->d:Ljava/util/ArrayList;

    return-object p0
.end method

.method private a(Ljava/util/ArrayList;Lcom/moji/weatherprovider/data/Weather;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Ljava/io/InputStream;",
            ">;",
            "Lcom/moji/weatherprovider/data/Weather;",
            ")V"
        }
    .end annotation

    .line 650
    :try_start_0
    iget-object v0, p2, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Detail;->mAdvertisement:Lcom/moji/weatherprovider/data/Advertisement;

    const-string v1, "voice_0"

    invoke-virtual {v0, v1}, Lcom/moji/weatherprovider/data/Advertisement;->getAd(Ljava/lang/String;)Lcom/moji/weatherprovider/data/Advertisement$Ad;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 651
    iget-object v1, v0, Lcom/moji/weatherprovider/data/Advertisement$Ad;->mItem:Lcom/moji/weatherprovider/data/Advertisement$Item;

    if-eqz v1, :cond_1

    iget-object v1, v0, Lcom/moji/weatherprovider/data/Advertisement$Ad;->mItem:Lcom/moji/weatherprovider/data/Advertisement$Item;

    iget-object v1, v1, Lcom/moji/weatherprovider/data/Advertisement$Item;->mUrl:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 652
    sget-object v1, Lcom/moji/mjweather/voice/VoiceConstants;->e:Ljava/lang/String;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Advertisement$Ad;->mItem:Lcom/moji/weatherprovider/data/Advertisement$Item;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Advertisement$Item;->mUrl:Ljava/lang/String;

    invoke-direct {p0, v1, v0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 654
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-eqz v1, :cond_0

    const/4 v1, 0x1

    .line 655
    invoke-virtual {p1, v1, v0}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    .line 657
    invoke-virtual {p1, v1, v0}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    .line 661
    :cond_1
    :goto_0
    iget-object p2, p2, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object p2, p2, Lcom/moji/weatherprovider/data/Detail;->mAdvertisement:Lcom/moji/weatherprovider/data/Advertisement;

    const-string v0, "voice_1"

    invoke-virtual {p2, v0}, Lcom/moji/weatherprovider/data/Advertisement;->getAd(Ljava/lang/String;)Lcom/moji/weatherprovider/data/Advertisement$Ad;

    move-result-object p2

    if-eqz p2, :cond_2

    .line 662
    iget-object v0, p2, Lcom/moji/weatherprovider/data/Advertisement$Ad;->mItem:Lcom/moji/weatherprovider/data/Advertisement$Item;

    if-eqz v0, :cond_2

    iget-object v0, p2, Lcom/moji/weatherprovider/data/Advertisement$Ad;->mItem:Lcom/moji/weatherprovider/data/Advertisement$Item;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Advertisement$Item;->mUrl:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 663
    sget-object v0, Lcom/moji/mjweather/voice/VoiceConstants;->f:Ljava/lang/String;

    iget-object p2, p2, Lcom/moji/weatherprovider/data/Advertisement$Ad;->mItem:Lcom/moji/weatherprovider/data/Advertisement$Item;

    iget-object p2, p2, Lcom/moji/weatherprovider/data/Advertisement$Item;->mUrl:Ljava/lang/String;

    invoke-direct {p0, v0, p2}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object p2

    if-eqz p2, :cond_2

    .line 665
    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    const-string p2, "VoiceContentMgr"

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

    :cond_2
    :goto_1
    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/voice/VoiceContentMgr;Ljava/lang/String;)Z
    .locals 0

    .line 45
    invoke-direct {p0, p1}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Ljava/lang/String;)Z

    move-result p0

    return p0
.end method

.method static synthetic a(Lcom/moji/mjweather/voice/VoiceContentMgr;Z)Z
    .locals 0

    .line 45
    iput-boolean p1, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->f:Z

    return p1
.end method

.method private a(Ljava/lang/String;)Z
    .locals 4

    .line 748
    new-instance v0, Lcom/moji/mjweather/assshop/voice/VoicePathManger;

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

    .line 749
    new-instance v1, Ljava/io/File;

    new-instance v2, Ljava/lang/StringBuilder;

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

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

    move-result-object v3

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

    invoke-virtual {v2, p1}, 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-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

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

    move-result v1

    if-eqz v1, :cond_0

    const/4 p1, 0x1

    return p1

    .line 753
    :cond_0
    new-instance v1, Ljava/io/File;

    new-instance v2, Ljava/lang/StringBuilder;

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

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

    move-result-object v0

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

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

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

    move-result-object p1

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

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

    move-result p1

    return p1
.end method

.method private b(Ljava/util/Calendar;)I
    .locals 1

    const/16 v0, 0xc

    .line 711
    invoke-virtual {p1, v0}, Ljava/util/Calendar;->get(I)I

    move-result p1

    return p1
.end method

.method static synthetic b(Lcom/moji/mjweather/voice/VoiceContentMgr;)Ljava/util/ArrayList;
    .locals 0

    .line 45
    iget-object p0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->e:Ljava/util/ArrayList;

    return-object p0
.end method

.method static synthetic c(Lcom/moji/mjweather/voice/VoiceContentMgr;)Landroid/content/Context;
    .locals 0

    .line 45
    iget-object p0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->b:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic d(Lcom/moji/mjweather/voice/VoiceContentMgr;)Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;
    .locals 0

    .line 45
    iget-object p0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->c:Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

    return-object p0
.end method

.method private d()Ljava/util/ArrayList;
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 304
    new-instance v0, Ljava/util/ArrayList;

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

    .line 305
    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->g()Ljava/lang/String;

    move-result-object v1

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

    .line 306
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v1

    .line 307
    invoke-direct {p0, v1}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Ljava/util/Calendar;)I

    move-result v2

    .line 308
    invoke-direct {p0, v1}, Lcom/moji/mjweather/voice/VoiceContentMgr;->b(Ljava/util/Calendar;)I

    move-result v1

    const/16 v3, 0x9

    const/4 v4, 0x5

    const/4 v5, 0x2

    if-nez v1, :cond_3

    if-ne v2, v5, :cond_0

    const-string v1, "hour200_tw_1.mp3"

    .line 311
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_1

    :cond_0
    if-ne v2, v4, :cond_1

    const-string v1, "hour500_tw_1.mp3"

    .line 313
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_1

    :cond_1
    if-ne v2, v3, :cond_2

    const-string v1, "hour900_tw_1.mp3"

    .line 315
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 317
    :cond_2
    new-instance v1, Ljava/lang/StringBuilder;

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

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

    const-string v2, "_tw_1.mp3"

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

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

    move-result-object v1

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

    const-string v1, "hour00_tw_1.mp3"

    .line 318
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_3
    if-ne v2, v5, :cond_4

    const-string v2, "hour2_tw_1.mp3"

    .line 322
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_4
    if-ne v2, v4, :cond_5

    const-string v2, "hour5_tw_1.mp3"

    .line 324
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_5
    if-ne v2, v3, :cond_6

    const-string v2, "hour9_tw_1.mp3"

    .line 326
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 328
    :cond_6
    new-instance v3, Ljava/lang/StringBuilder;

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

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

    const-string v2, "_tw_1.mp3"

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

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

    move-result-object v2

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

    const-string v2, "hour_tw_1.mp3"

    .line 329
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :goto_0
    const/16 v2, 0xa

    if-ge v1, v2, :cond_7

    const-string v2, "0_tw_1.mp3"

    .line 331
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 332
    :cond_7
    new-instance v2, Ljava/lang/StringBuilder;

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

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

    const-string v1, "_tw_1.mp3"

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

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

    move-result-object v1

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

    const-string v1, "minute_tw_1.mp3"

    .line 333
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :goto_1
    return-object v0
.end method

.method private e()Ljava/util/ArrayList;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 341
    new-instance v0, Ljava/util/ArrayList;

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

    .line 342
    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->g()Ljava/lang/String;

    move-result-object v1

    const-string v2, "forenoon"

    .line 345
    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 346
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 348
    :cond_0
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v1

    .line 349
    invoke-direct {p0, v1}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Ljava/util/Calendar;)I

    move-result v2

    .line 350
    invoke-direct {p0, v1}, Lcom/moji/mjweather/voice/VoiceContentMgr;->b(Ljava/util/Calendar;)I

    move-result v1

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

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

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

    const-string v2, "_hk_1.mp3"

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

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

    move-result-object v2

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

    if-nez v1, :cond_1

    const-string v1, "hour00_hk_1.mp3"

    .line 353
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_1
    const-string v2, "hour_hk_1.mp3"

    .line 355
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    const/16 v2, 0xa

    if-ge v1, v2, :cond_2

    const-string v2, "0_hk_1.mp3"

    .line 356
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 357
    :cond_2
    new-instance v2, Ljava/lang/StringBuilder;

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

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

    const-string v1, "_hk_1.mp3"

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

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

    move-result-object v1

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

    const-string v1, "minute_hk_1.mp3"

    .line 358
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :goto_0
    return-object v0
.end method

.method private f()Ljava/util/ArrayList;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 364
    new-instance v0, Ljava/util/ArrayList;

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

    .line 365
    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->g()Ljava/lang/String;

    move-result-object v1

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

    .line 366
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v1

    .line 367
    invoke-direct {p0, v1}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Ljava/util/Calendar;)I

    move-result v2

    .line 368
    invoke-direct {p0, v1}, Lcom/moji/mjweather/voice/VoiceContentMgr;->b(Ljava/util/Calendar;)I

    move-result v1

    const/4 v3, 0x2

    if-ne v2, v3, :cond_0

    const-string v2, "hour2_zh_1.mp3"

    .line 370
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 372
    :cond_0
    new-instance v3, Ljava/lang/StringBuilder;

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

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

    const-string v2, "_zh_1.mp3"

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

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

    move-result-object v2

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

    :goto_0
    if-nez v1, :cond_1

    const-string v1, "hour00_zh_1.mp3"

    .line 375
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_1
    const-string v2, "hour_zh_1.mp3"

    .line 377
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    const/16 v2, 0xa

    if-ge v1, v2, :cond_2

    const-string v2, "0_zh_1.mp3"

    .line 378
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 379
    :cond_2
    new-instance v2, Ljava/lang/StringBuilder;

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

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

    const-string v1, "_zh_1.mp3"

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

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

    move-result-object v1

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

    const-string v1, "minute_zh_1.mp3"

    .line 380
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :goto_1
    return-object v0
.end method

.method private g()Ljava/lang/String;
    .locals 3

    .line 387
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v0

    const/16 v1, 0xb

    .line 388
    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v0

    const/4 v1, 0x5

    const/4 v2, 0x1

    if-lt v0, v2, :cond_0

    if-ge v0, v1, :cond_0

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

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

    const-string v1, "morning"

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

    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->h()Ljava/lang/String;

    move-result-object v1

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

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

    move-result-object v0

    return-object v0

    :cond_0
    const/16 v2, 0x9

    if-lt v0, v1, :cond_1

    if-ge v0, v2, :cond_1

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

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

    const-string v1, "morning2"

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

    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->h()Ljava/lang/String;

    move-result-object v1

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

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

    move-result-object v0

    return-object v0

    :cond_1
    const/16 v1, 0xc

    if-lt v0, v2, :cond_2

    if-ge v0, v1, :cond_2

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

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

    const-string v1, "forenoon"

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

    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->h()Ljava/lang/String;

    move-result-object v1

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

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

    move-result-object v0

    return-object v0

    :cond_2
    const/16 v2, 0xe

    if-lt v0, v1, :cond_3

    if-ge v0, v2, :cond_3

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

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

    const-string v1, "noon"

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

    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->h()Ljava/lang/String;

    move-result-object v1

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

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

    move-result-object v0

    return-object v0

    :cond_3
    const/16 v1, 0x12

    if-lt v0, v2, :cond_4

    if-ge v0, v1, :cond_4

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

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

    const-string v1, "afternoon"

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

    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->h()Ljava/lang/String;

    move-result-object v1

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

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

    move-result-object v0

    return-object v0

    :cond_4
    const/16 v2, 0x14

    if-lt v0, v1, :cond_5

    if-ge v0, v2, :cond_5

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

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

    const-string v1, "evening"

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

    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->h()Ljava/lang/String;

    move-result-object v1

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

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

    move-result-object v0

    return-object v0

    :cond_5
    if-lt v0, v2, :cond_6

    const/16 v1, 0x18

    if-ge v0, v1, :cond_6

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

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

    const-string v1, "evening2"

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

    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->h()Ljava/lang/String;

    move-result-object v1

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

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

    move-result-object v0

    return-object v0

    .line 404
    :cond_6
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "night"

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

    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->h()Ljava/lang/String;

    move-result-object v1

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

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

    move-result-object v0

    return-object v0
.end method

.method private h()Ljava/lang/String;
    .locals 3

    .line 409
    invoke-static {}, Lcom/moji/preferences/units/SettingCenter;->a()Lcom/moji/preferences/units/SettingCenter;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/preferences/units/SettingCenter;->c()Lcom/moji/preferences/units/VOICE_LANGUAGE;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/preferences/units/VOICE_LANGUAGE;->name()Ljava/lang/String;

    move-result-object v0

    .line 410
    invoke-virtual {v0}, Ljava/lang/String;->hashCode()I

    move-result v1

    const/16 v2, 0x86b

    if-eq v1, v2, :cond_2

    const/16 v2, 0x903

    if-eq v1, v2, :cond_1

    const/16 v2, 0xa83

    if-eq v1, v2, :cond_0

    goto :goto_0

    :cond_0
    const-string v1, "TW"

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

    move-result v0

    if-eqz v0, :cond_3

    const/4 v0, 0x2

    goto :goto_1

    :cond_1
    const-string v1, "HK"

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

    move-result v0

    if-eqz v0, :cond_3

    const/4 v0, 0x1

    goto :goto_1

    :cond_2
    const-string v1, "CN"

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

    move-result v0

    if-eqz v0, :cond_3

    const/4 v0, 0x0

    goto :goto_1

    :cond_3
    :goto_0
    const/4 v0, -0x1

    :goto_1
    packed-switch v0, :pswitch_data_0

    const-string v0, "_zh_1.mp3"

    return-object v0

    :pswitch_0
    const-string v0, "_tw_1.mp3"

    return-object v0

    :pswitch_1
    const-string v0, "_hk_1.mp3"

    return-object v0

    :pswitch_2
    const-string v0, "_zh_1.mp3"

    return-object v0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method private i()Ljava/lang/String;
    .locals 3

    .line 685
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v0

    const/16 v1, 0xb

    .line 686
    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v0

    const/16 v1, 0x9

    const/4 v2, 0x5

    if-lt v0, v2, :cond_0

    if-ge v0, v1, :cond_0

    const-string v0, "good_morning"

    return-object v0

    :cond_0
    const/16 v2, 0xc

    if-lt v0, v1, :cond_1

    if-ge v0, v2, :cond_1

    const-string v0, "good_morning2"

    return-object v0

    :cond_1
    if-lt v0, v2, :cond_2

    const/16 v1, 0x14

    if-ge v0, v1, :cond_2

    const-string v0, "good_afternoon"

    return-object v0

    :cond_2
    const-string v0, "good_evening"

    return-object v0
.end method

.method private j()V
    .locals 2

    .line 715
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->b:Landroid/content/Context;

    const-string v1, "Voice_forecast.mp3"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getFileStreamPath(Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    .line 716
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 717
    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "VoiceContentMgr"

    const-string v1, "File delete failed"

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

    :cond_0
    return-void
.end method

.method private k()V
    .locals 2

    .line 724
    iget-object v0, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->b:Landroid/content/Context;

    const-string v1, "Voice_bg.mp3"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getFileStreamPath(Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    .line 725
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 726
    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "VoiceContentMgr"

    const-string v1, "File delete failed"

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

    :cond_0
    return-void
.end method


# virtual methods
.method public a(Landroid/content/Context;ZZLcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;)V
    .locals 17

    move-object/from16 v8, p0

    const-string v0, "VoiceContentMgr"

    const-string v1, "prepareVoiceFile"

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

    move-object/from16 v0, p4

    .line 76
    iput-object v0, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->c:Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

    const/4 v9, 0x0

    const/4 v10, 0x0

    .line 80
    :try_start_0
    iget-object v0, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->d:Ljava/util/ArrayList;

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

    .line 81
    iget-object v0, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->e:Ljava/util/ArrayList;

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

    .line 83
    new-instance v0, Lcom/moji/mjweather/assshop/voice/VoicePathManger;

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

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

    move-result-object v7

    .line 86
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object v0

    if-nez v0, :cond_1

    const-string v0, "VoiceContentMgr"

    const-string v1, "prepareVoiceFile current area info null return"

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

    .line 89
    iget-object v0, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->c:Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

    if-eqz v0, :cond_0

    .line 90
    iget-object v0, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->c:Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

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

    :cond_0
    return-void

    .line 93
    :cond_1
    invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;

    move-result-object v0

    if-nez v0, :cond_3

    const-string v0, "VoiceContentMgr"

    const-string v1, "prepareVoiceFile current weather null return"

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

    .line 96
    iget-object v0, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->c:Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

    if-eqz v0, :cond_2

    .line 97
    iget-object v0, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->c:Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

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

    :cond_2
    return-void

    :cond_3
    const-string v1, "VoiceContentMgr"

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

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

    const-string v3, "mVoice = "

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

    iget-object v3, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v3, v3, Lcom/moji/weatherprovider/data/Detail;->mVoice:Lcom/moji/weatherprovider/data/Voice;

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

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

    move-result-object v2

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

    .line 102
    invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z

    move-result v1

    if-nez v1, :cond_5

    if-nez p3, :cond_5

    const-string v0, "VoiceContentMgr"

    const-string v1, "prepareVoiceFile no network return"

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

    .line 104
    iget-object v0, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->c:Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

    if-eqz v0, :cond_4

    .line 105
    iget-object v0, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->c:Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

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

    :cond_4
    return-void

    .line 110
    :cond_5
    iget-object v1, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v1, v1, Lcom/moji/weatherprovider/data/Detail;->mVoice:Lcom/moji/weatherprovider/data/Voice;

    iget-object v1, v1, Lcom/moji/weatherprovider/data/Voice;->mSequence:Ljava/lang/String;

    const-string v2, "\\s+"

    const-string v3, ""

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

    move-result-object v1

    const-string v2, ","

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

    move-result-object v1

    .line 111
    iget-object v2, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v2, v2, Lcom/moji/weatherprovider/data/Detail;->mVoice:Lcom/moji/weatherprovider/data/Voice;

    iget-object v2, v2, Lcom/moji/weatherprovider/data/Voice;->mBackground:Ljava/lang/String;

    const-string v3, "\\s+"

    const-string v4, ""

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

    move-result-object v2

    const-string v3, ","

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

    move-result-object v2

    const/4 v3, 0x0

    .line 112
    :goto_0
    array-length v4, v1

    const/4 v6, 0x1

    if-ge v3, v4, :cond_f

    .line 113
    aget-object v4, v1, v3

    const-string v11, "{bless}"

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

    move-result v4

    if-eqz v4, :cond_6

    .line 114
    aget-object v4, v1, v3

    const-string v11, "{bless}"

    invoke-direct/range {p0 .. p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->i()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v4, v11, v12}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v1, v3

    .line 115
    :cond_6
    aget-object v4, v1, v3

    const-string v11, "#"

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

    move-result v4

    if-eqz v4, :cond_d

    aget-object v4, v1, v3

    const-string v11, "#"

    invoke-virtual {v4, v11}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_d

    if-eqz p2, :cond_e

    .line 117
    aget-object v11, v1, v3

    aget-object v12, v1, v3

    invoke-virtual {v12}, Ljava/lang/String;->length()I

    move-result v12

    sub-int/2addr v12, v6

    invoke-virtual {v11, v6, v12}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v11

    const-string v12, ";"

    invoke-virtual {v11, v12}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v11

    .line 118
    array-length v12, v11

    const/4 v13, 0x0

    :goto_1
    if-ge v13, v12, :cond_e

    aget-object v14, v11, v13

    const-string v15, "{time}"

    .line 119
    invoke-virtual {v14, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-eqz v15, :cond_b

    .line 122
    invoke-static {}, Lcom/moji/preferences/units/SettingCenter;->a()Lcom/moji/preferences/units/SettingCenter;

    move-result-object v14

    invoke-virtual {v14}, Lcom/moji/preferences/units/SettingCenter;->c()Lcom/moji/preferences/units/VOICE_LANGUAGE;

    move-result-object v14

    invoke-virtual {v14}, Lcom/moji/preferences/units/VOICE_LANGUAGE;->name()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/String;->hashCode()I

    move-result v15

    const/16 v9, 0x86b

    if-eq v15, v9, :cond_9

    const/16 v9, 0x903

    if-eq v15, v9, :cond_8

    const/16 v9, 0xa83

    if-eq v15, v9, :cond_7

    goto :goto_2

    :cond_7
    const-string v9, "TW"

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

    move-result v9

    if-eqz v9, :cond_a

    const/4 v9, 0x2

    const/16 v16, 0x2

    goto :goto_3

    :cond_8
    const-string v9, "HK"

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

    move-result v9

    if-eqz v9, :cond_a

    const/16 v16, 0x1

    goto :goto_3

    :cond_9
    const-string v9, "CN"

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

    move-result v9

    if-eqz v9, :cond_a

    const/16 v16, 0x0

    goto :goto_3

    :cond_a
    :goto_2
    const/16 v16, -0x1

    :goto_3
    packed-switch v16, :pswitch_data_0

    .line 133
    invoke-direct/range {p0 .. p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->f()Ljava/util/ArrayList;

    move-result-object v9

    goto :goto_4

    .line 130
    :pswitch_0
    invoke-direct/range {p0 .. p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->d()Ljava/util/ArrayList;

    move-result-object v9

    goto :goto_4

    .line 127
    :pswitch_1
    invoke-direct/range {p0 .. p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->e()Ljava/util/ArrayList;

    move-result-object v9

    goto :goto_4

    .line 124
    :pswitch_2
    invoke-direct/range {p0 .. p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->f()Ljava/util/ArrayList;

    move-result-object v9

    .line 137
    :goto_4
    iget-object v14, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->d:Ljava/util/ArrayList;

    invoke-virtual {v14, v9}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    goto :goto_5

    :cond_b
    const-string v9, ".mp3"

    .line 138
    invoke-virtual {v14, v9}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_c

    iget-object v9, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->d:Ljava/util/ArrayList;

    invoke-virtual {v9, v14}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_c
    :goto_5
    add-int/lit8 v13, v13, 0x1

    const/4 v9, 0x0

    goto :goto_1

    .line 141
    :cond_d
    aget-object v6, v1, v3

    const-string v9, ".mp3"

    invoke-virtual {v6, v9}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_e

    iget-object v6, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->d:Ljava/util/ArrayList;

    aget-object v9, v1, v3

    invoke-virtual {v6, v9}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_e
    add-int/lit8 v3, v3, 0x1

    const/4 v9, 0x0

    goto/16 :goto_0

    .line 143
    :cond_f
    array-length v1, v2

    const/4 v3, 0x0

    :goto_6
    if-ge v3, v1, :cond_11

    aget-object v4, v2, v3

    const-string v9, ".mp3"

    .line 144
    invoke-virtual {v4, v9}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_10

    iget-object v9, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->e:Ljava/util/ArrayList;

    invoke-virtual {v9, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_10
    add-int/lit8 v3, v3, 0x1

    goto :goto_6

    .line 147
    :cond_11
    iget-object v1, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v1, v1, Lcom/moji/weatherprovider/data/Detail;->mVoice:Lcom/moji/weatherprovider/data/Voice;

    iget-object v1, v1, Lcom/moji/weatherprovider/data/Voice;->mDomain:Ljava/lang/String;

    invoke-virtual {v1, v6}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    .line 148
    iget-object v0, v0, Lcom/moji/weatherprovider/data/Weather;->mDomain:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string v1, "VoiceContentMgr"

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

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

    const-string v3, "MJAsyncTask Execute "

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

    iget-boolean v3, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->f:Z

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

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

    move-result-object v2

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

    .line 151
    iget-boolean v1, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->f:Z

    if-nez v1, :cond_12

    .line 152
    iput-boolean v6, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->f:Z

    .line 153
    new-instance v9, Lcom/moji/mjweather/voice/VoiceContentMgr$1;

    sget-object v3, Lcom/moji/tool/thread/ThreadPriority;->NORMAL:Lcom/moji/tool/thread/ThreadPriority;

    move-object v1, v9

    move-object/from16 v2, p0

    move-object/from16 v4, p1

    move/from16 v5, p3

    move-object v6, v0

    invoke-direct/range {v1 .. v7}, Lcom/moji/mjweather/voice/VoiceContentMgr$1;-><init>(Lcom/moji/mjweather/voice/VoiceContentMgr;Lcom/moji/tool/thread/ThreadPriority;Landroid/content/Context;ZLjava/lang/String;Ljava/lang/String;)V

    sget-object v0, Lcom/moji/tool/thread/ThreadType;->IO_THREAD:Lcom/moji/tool/thread/ThreadType;

    new-array v1, v10, [Ljava/lang/Void;

    .line 294
    invoke-virtual {v9, v0, v1}, Lcom/moji/mjweather/voice/VoiceContentMgr$1;->a(Lcom/moji/tool/thread/ThreadType;[Ljava/lang/Object;)Lcom/moji/tool/thread/task/MJAsyncTask;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_7

    :catch_0
    move-exception v0

    const-string v1, "VoiceContentMgr"

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

    .line 298
    iget-object v0, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->c:Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

    if-eqz v0, :cond_12

    .line 299
    iget-object v0, v8, Lcom/moji/mjweather/voice/VoiceContentMgr;->c:Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener;

    const/4 v1, 0x0

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

    :cond_12
    :goto_7
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method b()Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;
    .locals 12

    .line 431
    new-instance v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;

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

    const/4 v1, 0x0

    const/4 v2, 0x2

    .line 434
    :try_start_0
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object v3

    const/4 v4, 0x4

    if-nez v3, :cond_0

    .line 436
    iput v4, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    return-object v0

    .line 439
    :cond_0
    invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;

    move-result-object v5

    invoke-virtual {v5, v3}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;

    move-result-object v3

    if-nez v3, :cond_1

    .line 441
    iput v4, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    return-object v0

    .line 445
    :cond_1
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_b
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_9
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_7
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    .line 454
    :try_start_1
    new-instance v4, Lcom/moji/mjweather/assshop/voice/VoicePathManger;

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

    .line 456
    iget-object v5, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->e:Ljava/util/ArrayList;

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

    move-result-object v5

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

    move-result v6

    if-eqz v6, :cond_4

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

    move-result-object v6

    check-cast v6, Ljava/lang/String;

    .line 457
    new-instance v7, Ljava/io/File;

    new-instance v8, Ljava/lang/StringBuilder;

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

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

    move-result-object v9

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

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

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

    move-result-object v8

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

    .line 458
    invoke-virtual {v7}, Ljava/io/File;->exists()Z

    move-result v8

    if-nez v8, :cond_3

    .line 459
    invoke-virtual {v7}, Ljava/io/File;->createNewFile()Z

    move-result v8

    if-eqz v8, :cond_3

    const-string v8, "VoiceContentMgr"

    const-string v9, "File create failed"

    .line 460
    invoke-static {v8, v9}, Lcom/moji/tool/log/MJLogger;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 462
    new-instance v8, Ljava/io/File;

    new-instance v9, Ljava/lang/StringBuilder;

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

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

    move-result-object v10

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

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

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

    move-result-object v9

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

    .line 463
    invoke-virtual {v8}, Ljava/io/File;->exists()Z

    move-result v9

    if-nez v9, :cond_2

    .line 464
    new-instance v8, Ljava/io/File;

    new-instance v9, Ljava/lang/StringBuilder;

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

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

    move-result-object v10

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

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

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

    move-result-object v6

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

    .line 467
    :cond_2
    invoke-static {v8}, Lcom/moji/mjweather/voice/MediaUtil;->a(Ljava/io/File;)[B

    move-result-object v6

    .line 468
    array-length v8, v6

    if-eqz v8, :cond_3

    .line 469
    new-instance v8, Ljava/io/FileOutputStream;

    invoke-direct {v8, v7}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    .line 470
    invoke-virtual {v8, v6}, Ljava/io/FileOutputStream;->write([B)V

    .line 471
    invoke-virtual {v8}, Ljava/io/FileOutputStream;->flush()V

    .line 472
    invoke-virtual {v8}, Ljava/io/FileOutputStream;->close()V

    .line 476
    :cond_3
    new-instance v6, Ljava/io/FileInputStream;

    invoke-direct {v6, v7}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    invoke-virtual {v3, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    .line 479
    :cond_4
    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->k()V

    .line 480
    iget-object v4, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->b:Landroid/content/Context;

    const-string v5, "Voice_bg.mp3"

    const/4 v6, 0x0

    invoke-virtual {v4, v5, v6}, Landroid/content/Context;->openFileOutput(Ljava/lang/String;I)Ljava/io/FileOutputStream;

    move-result-object v4
    :try_end_1
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_6
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_5
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_4
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    .line 482
    :try_start_2
    invoke-virtual {v3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

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

    move-result v5

    if-eqz v5, :cond_7

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

    move-result-object v5

    check-cast v5, Ljava/io/InputStream;

    const/16 v7, 0x400

    .line 483
    new-array v7, v7, [B

    .line 485
    :goto_2
    invoke-virtual {v5, v7}, Ljava/io/InputStream;->read([B)I

    move-result v8

    const/4 v9, -0x1

    if-eq v8, v9, :cond_6

    .line 486
    array-length v9, v7

    if-ge v8, v9, :cond_5

    .line 487
    invoke-virtual {v4, v7, v6, v8}, Ljava/io/FileOutputStream;->write([BII)V

    goto :goto_2

    .line 489
    :cond_5
    invoke-virtual {v4, v7}, Ljava/io/FileOutputStream;->write([B)V

    goto :goto_2

    .line 492
    :cond_6
    invoke-virtual {v4}, Ljava/io/FileOutputStream;->flush()V

    .line 493
    invoke-virtual {v5}, Ljava/io/InputStream;->close()V

    goto :goto_1

    .line 495
    :cond_7
    iput v6, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I
    :try_end_2
    .catch Ljava/io/FileNotFoundException; {:try_start_2 .. :try_end_2} :catch_3
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 515
    invoke-virtual {v3}, Ljava/util/ArrayList;->clear()V

    if-eqz v4, :cond_8

    .line 519
    :try_start_3
    invoke-virtual {v4}, Ljava/io/FileOutputStream;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0

    goto :goto_3

    :catch_0
    move-exception v1

    .line 521
    iput v2, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v2, "VoiceContentMgr"

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

    :cond_8
    :goto_3
    return-object v0

    :catchall_0
    move-exception v1

    move-object v11, v4

    move-object v4, v1

    goto/16 :goto_a

    :catch_1
    move-exception v1

    move-object v11, v4

    move-object v4, v1

    move-object v1, v3

    move-object v3, v11

    goto :goto_4

    :catch_2
    move-exception v1

    move-object v11, v4

    move-object v4, v1

    move-object v1, v3

    move-object v3, v11

    goto :goto_6

    :catch_3
    move-exception v1

    move-object v11, v4

    move-object v4, v1

    move-object v1, v3

    move-object v3, v11

    goto/16 :goto_8

    :catchall_1
    move-exception v4

    goto/16 :goto_b

    :catch_4
    move-exception v4

    move-object v11, v3

    move-object v3, v1

    move-object v1, v11

    goto :goto_4

    :catch_5
    move-exception v4

    move-object v11, v3

    move-object v3, v1

    move-object v1, v11

    goto :goto_6

    :catch_6
    move-exception v4

    move-object v11, v3

    move-object v3, v1

    move-object v1, v11

    goto :goto_8

    :catchall_2
    move-exception v3

    move-object v4, v3

    move-object v3, v1

    goto/16 :goto_b

    :catch_7
    move-exception v3

    move-object v4, v3

    move-object v3, v1

    :goto_4
    const/4 v5, 0x3

    .line 509
    :try_start_4
    iput v5, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v5, "VoiceContentMgr"

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

    .line 511
    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->k()V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_3

    if-eqz v1, :cond_9

    .line 515
    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    :cond_9
    if-eqz v3, :cond_a

    .line 519
    :try_start_5
    invoke-virtual {v3}, Ljava/io/FileOutputStream;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_8

    goto :goto_5

    :catch_8
    move-exception v1

    .line 521
    iput v2, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v2, "VoiceContentMgr"

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

    :cond_a
    :goto_5
    return-object v0

    :catch_9
    move-exception v3

    move-object v4, v3

    move-object v3, v1

    .line 503
    :goto_6
    :try_start_6
    iput v2, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v5, "VoiceContentMgr"

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

    .line 505
    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->k()V
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_3

    if-eqz v1, :cond_b

    .line 515
    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    :cond_b
    if-eqz v3, :cond_c

    .line 519
    :try_start_7
    invoke-virtual {v3}, Ljava/io/FileOutputStream;->close()V
    :try_end_7
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_a

    goto :goto_7

    :catch_a
    move-exception v1

    .line 521
    iput v2, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v2, "VoiceContentMgr"

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

    :cond_c
    :goto_7
    return-object v0

    :catch_b
    move-exception v3

    move-object v4, v3

    move-object v3, v1

    .line 497
    :goto_8
    :try_start_8
    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->k()V

    const/4 v5, 0x1

    .line 498
    iput v5, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v5, "VoiceContentMgr"

    .line 499
    invoke-static {v5, v4}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_3

    if-eqz v1, :cond_d

    .line 515
    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    :cond_d
    if-eqz v3, :cond_e

    .line 519
    :try_start_9
    invoke-virtual {v3}, Ljava/io/FileOutputStream;->close()V
    :try_end_9
    .catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_c

    goto :goto_9

    :catch_c
    move-exception v1

    .line 521
    iput v2, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v2, "VoiceContentMgr"

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

    :cond_e
    :goto_9
    return-object v0

    :catchall_3
    move-exception v4

    move-object v11, v3

    move-object v3, v1

    :goto_a
    move-object v1, v11

    :goto_b
    if-eqz v3, :cond_f

    .line 515
    invoke-virtual {v3}, Ljava/util/ArrayList;->clear()V

    :cond_f
    if-eqz v1, :cond_10

    .line 519
    :try_start_a
    invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V
    :try_end_a
    .catch Ljava/io/IOException; {:try_start_a .. :try_end_a} :catch_d

    goto :goto_c

    :catch_d
    move-exception v1

    .line 521
    iput v2, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v0, "VoiceContentMgr"

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

    .line 525
    :cond_10
    :goto_c
    throw v4
.end method

.method public c()Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;
    .locals 14

    .line 549
    new-instance v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;

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

    const/4 v1, 0x0

    const/4 v2, 0x2

    .line 551
    :try_start_0
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_b
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_9
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_7
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    .line 555
    :try_start_1
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object v4

    const/4 v5, 0x4

    if-nez v4, :cond_0

    .line 557
    iput v5, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I
    :try_end_1
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_6
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_5
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_4
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    .line 633
    invoke-virtual {v3}, Ljava/util/ArrayList;->clear()V

    return-object v0

    .line 560
    :cond_0
    :try_start_2
    invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;

    move-result-object v6

    invoke-virtual {v6, v4}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;

    move-result-object v4

    if-nez v4, :cond_1

    .line 562
    iput v5, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I
    :try_end_2
    .catch Ljava/io/FileNotFoundException; {:try_start_2 .. :try_end_2} :catch_6
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_5
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_4
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    .line 633
    invoke-virtual {v3}, Ljava/util/ArrayList;->clear()V

    return-object v0

    .line 572
    :cond_1
    :try_start_3
    new-instance v5, Lcom/moji/mjweather/assshop/voice/VoicePathManger;

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

    .line 573
    invoke-virtual {v5}, Lcom/moji/mjweather/assshop/voice/VoicePathManger;->c()Ljava/lang/String;

    move-result-object v6

    .line 575
    iget-object v7, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->d:Ljava/util/ArrayList;

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

    move-result-object v7

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

    move-result v8

    if-eqz v8, :cond_4

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

    move-result-object v8

    check-cast v8, Ljava/lang/String;

    const-string v9, "VoiceContentMgr"

    .line 576
    new-instance v10, Ljava/lang/StringBuilder;

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

    const-string v11, "addVoiceFile: "

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

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

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

    move-result-object v10

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

    .line 577
    new-instance v9, Ljava/io/File;

    new-instance v10, Ljava/lang/StringBuilder;

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

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

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

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

    move-result-object v10

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

    .line 578
    invoke-virtual {v9}, Ljava/io/File;->exists()Z

    move-result v10

    if-nez v10, :cond_3

    .line 579
    invoke-virtual {v9}, Ljava/io/File;->createNewFile()Z

    move-result v10

    if-eqz v10, :cond_3

    .line 581
    new-instance v10, Ljava/io/File;

    new-instance v11, Ljava/lang/StringBuilder;

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

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

    move-result-object v12

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

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

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

    move-result-object v11

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

    .line 582
    invoke-virtual {v10}, Ljava/io/File;->exists()Z

    move-result v11

    if-nez v11, :cond_2

    .line 583
    new-instance v10, Ljava/io/File;

    new-instance v11, Ljava/lang/StringBuilder;

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

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

    move-result-object v12

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

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

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

    move-result-object v8

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

    .line 586
    :cond_2
    invoke-static {v10}, Lcom/moji/mjweather/voice/MediaUtil;->a(Ljava/io/File;)[B

    move-result-object v8

    .line 587
    array-length v10, v8

    if-eqz v10, :cond_3

    .line 588
    new-instance v10, Ljava/io/FileOutputStream;

    invoke-direct {v10, v9}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    .line 589
    invoke-virtual {v10, v8}, Ljava/io/FileOutputStream;->write([B)V

    .line 590
    invoke-virtual {v10}, Ljava/io/FileOutputStream;->flush()V

    .line 591
    invoke-virtual {v10}, Ljava/io/FileOutputStream;->close()V

    .line 595
    :cond_3
    new-instance v8, Ljava/io/FileInputStream;

    invoke-direct {v8, v9}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    invoke-virtual {v3, v8}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    :cond_4
    const-string v5, "VoiceContentMgr"

    .line 597
    new-instance v6, Ljava/lang/StringBuilder;

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

    const-string v7, "mVoiceContent.size() = "

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

    iget-object v7, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->d:Ljava/util/ArrayList;

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

    move-result v7

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

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

    move-result-object v6

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

    const-string v5, "VoiceContentMgr"

    .line 598
    new-instance v6, Ljava/lang/StringBuilder;

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

    const-string v7, "contentArray.size() = "

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

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

    move-result v7

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

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

    move-result-object v6

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

    .line 600
    invoke-direct {p0, v3, v4}, Lcom/moji/mjweather/voice/VoiceContentMgr;->a(Ljava/util/ArrayList;Lcom/moji/weatherprovider/data/Weather;)V

    .line 602
    invoke-direct {p0}, Lcom/moji/mjweather/voice/VoiceContentMgr;->j()V

    .line 603
    iget-object v4, p0, Lcom/moji/mjweather/voice/VoiceContentMgr;->b:Landroid/content/Context;

    const-string v5, "Voice_forecast.mp3"

    const/4 v6, 0x0

    invoke-virtual {v4, v5, v6}, Landroid/content/Context;->openFileOutput(Ljava/lang/String;I)Ljava/io/FileOutputStream;

    move-result-object v4
    :try_end_3
    .catch Ljava/io/FileNotFoundException; {:try_start_3 .. :try_end_3} :catch_6
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_5
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_4
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    .line 604
    :try_start_4
    invoke-virtual {v3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

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

    move-result v5

    if-eqz v5, :cond_7

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

    move-result-object v5

    check-cast v5, Ljava/io/InputStream;

    const/16 v7, 0x400

    .line 605
    new-array v7, v7, [B

    .line 607
    :goto_2
    invoke-virtual {v5, v7}, Ljava/io/InputStream;->read([B)I

    move-result v8

    const/4 v9, -0x1

    if-eq v8, v9, :cond_6

    .line 608
    array-length v9, v7

    if-ge v8, v9, :cond_5

    .line 609
    invoke-virtual {v4, v7, v6, v8}, Ljava/io/FileOutputStream;->write([BII)V

    goto :goto_2

    .line 611
    :cond_5
    invoke-virtual {v4, v7}, Ljava/io/FileOutputStream;->write([B)V

    goto :goto_2

    .line 614
    :cond_6
    invoke-virtual {v4}, Ljava/io/FileOutputStream;->flush()V

    .line 615
    invoke-virtual {v5}, Ljava/io/InputStream;->close()V

    goto :goto_1

    .line 617
    :cond_7
    iput v6, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I
    :try_end_4
    .catch Ljava/io/FileNotFoundException; {:try_start_4 .. :try_end_4} :catch_3
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_2
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    .line 633
    invoke-virtual {v3}, Ljava/util/ArrayList;->clear()V

    if-eqz v4, :cond_8

    .line 637
    :try_start_5
    invoke-virtual {v4}, Ljava/io/FileOutputStream;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_0

    goto :goto_3

    :catch_0
    move-exception v1

    .line 639
    iput v2, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v2, "VoiceContentMgr"

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

    :cond_8
    :goto_3
    return-object v0

    :catchall_0
    move-exception v1

    move-object v13, v4

    move-object v4, v1

    goto/16 :goto_a

    :catch_1
    move-exception v1

    move-object v13, v4

    move-object v4, v1

    move-object v1, v3

    move-object v3, v13

    goto :goto_4

    :catch_2
    move-exception v1

    move-object v13, v4

    move-object v4, v1

    move-object v1, v3

    move-object v3, v13

    goto :goto_6

    :catch_3
    move-exception v1

    move-object v13, v4

    move-object v4, v1

    move-object v1, v3

    move-object v3, v13

    goto :goto_8

    :catchall_1
    move-exception v4

    goto/16 :goto_b

    :catch_4
    move-exception v4

    move-object v13, v3

    move-object v3, v1

    move-object v1, v13

    goto :goto_4

    :catch_5
    move-exception v4

    move-object v13, v3

    move-object v3, v1

    move-object v1, v13

    goto :goto_6

    :catch_6
    move-exception v4

    move-object v13, v3

    move-object v3, v1

    move-object v1, v13

    goto :goto_8

    :catchall_2
    move-exception v4

    move-object v3, v1

    goto :goto_b

    :catch_7
    move-exception v4

    move-object v3, v1

    :goto_4
    const/4 v5, 0x3

    .line 629
    :try_start_6
    iput v5, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v5, "VoiceContentMgr"

    .line 630
    invoke-static {v5, v4}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_3

    .line 633
    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    if-eqz v3, :cond_9

    .line 637
    :try_start_7
    invoke-virtual {v3}, Ljava/io/FileOutputStream;->close()V
    :try_end_7
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_8

    goto :goto_5

    :catch_8
    move-exception v1

    .line 639
    iput v2, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v2, "VoiceContentMgr"

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

    :cond_9
    :goto_5
    return-object v0

    :catch_9
    move-exception v4

    move-object v3, v1

    .line 625
    :goto_6
    :try_start_8
    iput v2, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v5, "VoiceContentMgr"

    .line 626
    invoke-static {v5, v4}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_3

    .line 633
    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    if-eqz v3, :cond_a

    .line 637
    :try_start_9
    invoke-virtual {v3}, Ljava/io/FileOutputStream;->close()V
    :try_end_9
    .catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_a

    goto :goto_7

    :catch_a
    move-exception v1

    .line 639
    iput v2, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v2, "VoiceContentMgr"

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

    :cond_a
    :goto_7
    return-object v0

    :catch_b
    move-exception v4

    move-object v3, v1

    :goto_8
    const/4 v5, 0x1

    .line 620
    :try_start_a
    iput v5, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v5, "VoiceContentMgr"

    .line 621
    invoke-static {v5, v4}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_a
    .catchall {:try_start_a .. :try_end_a} :catchall_3

    .line 633
    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    if-eqz v3, :cond_b

    .line 637
    :try_start_b
    invoke-virtual {v3}, Ljava/io/FileOutputStream;->close()V
    :try_end_b
    .catch Ljava/io/IOException; {:try_start_b .. :try_end_b} :catch_c

    goto :goto_9

    :catch_c
    move-exception v1

    .line 639
    iput v2, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v2, "VoiceContentMgr"

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

    :cond_b
    :goto_9
    return-object v0

    :catchall_3
    move-exception v4

    move-object v13, v3

    move-object v3, v1

    :goto_a
    move-object v1, v13

    .line 633
    :goto_b
    invoke-virtual {v3}, Ljava/util/ArrayList;->clear()V

    if-eqz v1, :cond_c

    .line 637
    :try_start_c
    invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V
    :try_end_c
    .catch Ljava/io/IOException; {:try_start_c .. :try_end_c} :catch_d

    goto :goto_c

    :catch_d
    move-exception v1

    .line 639
    iput v2, v0, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I

    const-string v0, "VoiceContentMgr"

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

    .line 644
    :cond_c
    :goto_c
    throw v4
.end method
