.class Lcom/moji/mjweather/weather/avatar/AvatarView$4;
.super Ljava/lang/Object;
.source "AvatarView.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/weather/avatar/AvatarView;->g()V
.end annotation

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


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/moji/mjweather/weather/avatar/AvatarView;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/weather/avatar/AvatarView;Ljava/lang/String;)V
    .locals 0

    .line 663
    iput-object p1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    iput-object p2, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->a:Ljava/lang/String;

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

    return-void
.end method


# virtual methods
.method public run()V
    .locals 9

    .line 666
    iget-object v0, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v0}, Lcom/moji/mjweather/weather/avatar/AvatarView;->k(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/AvatarView$AvatarHandler;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/weather/avatar/AvatarView$AvatarHandler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v0

    .line 667
    iget-object v2, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v2}, Lcom/moji/mjweather/weather/avatar/AvatarView;->l(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/BaseAvatar;

    move-result-object v2

    const-string v3, ""

    invoke-virtual {v2, v3}, Lcom/moji/mjweather/weather/avatar/BaseAvatar;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 668
    new-instance v3, Ljava/io/File;

    iget-object v4, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v4, v2}, Lcom/moji/mjweather/weather/avatar/AvatarView;->a(Lcom/moji/mjweather/weather/avatar/AvatarView;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

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

    .line 669
    iget-object v4, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v4}, Lcom/moji/mjweather/weather/avatar/AvatarView;->m(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/AvatarRectManager;

    move-result-object v4

    invoke-virtual {v4, v2}, Lcom/moji/mjweather/weather/avatar/AvatarRectManager;->a(Ljava/lang/String;)Lcom/moji/mjweather/weather/avatar/AdRect;

    move-result-object v4

    .line 671
    iget-object v5, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v5}, Lcom/moji/mjweather/weather/avatar/AvatarView;->n(Lcom/moji/mjweather/weather/avatar/AvatarView;)I

    move-result v5

    const/4 v6, 0x1

    const/16 v7, 0x8

    if-ne v5, v7, :cond_0

    iget-object v5, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v5}, Lcom/moji/mjweather/weather/avatar/AvatarView;->h(Lcom/moji/mjweather/weather/avatar/AvatarView;)Z

    move-result v5

    if-nez v5, :cond_0

    invoke-static {}, Lcom/moji/tool/DeviceTool;->W()Z

    move-result v5

    if-nez v5, :cond_0

    .line 672
    iget-object v3, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    const-string v5, "mona"

    invoke-static {v3, v5}, Lcom/moji/mjweather/weather/avatar/AvatarView;->b(Lcom/moji/mjweather/weather/avatar/AvatarView;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 673
    new-instance v5, Ljava/io/File;

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

    .line 674
    new-instance v7, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v7}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    .line 675
    iput-boolean v6, v7, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z

    .line 676
    invoke-static {v3, v7}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    .line 677
    iget v3, v7, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    if-lez v3, :cond_1

    iget v3, v7, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    if-lez v3, :cond_1

    .line 678
    sget v3, Lcom/moji/mjweather/weather/avatar/BaseAvatar;->a:I

    int-to-float v3, v3

    iget v4, v7, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    int-to-float v4, v4

    div-float/2addr v3, v4

    sget v4, Lcom/moji/mjweather/weather/avatar/BaseAvatar;->c:I

    int-to-float v4, v4

    iget v8, v7, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    int-to-float v8, v8

    div-float/2addr v4, v8

    invoke-static {v3, v4}, Ljava/lang/Math;->min(FF)F

    move-result v3

    .line 679
    new-instance v4, Lcom/moji/mjweather/weather/avatar/AdRect;

    iget v8, v7, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    int-to-float v8, v8

    mul-float v8, v8, v3

    float-to-int v8, v8

    iget v7, v7, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    int-to-float v7, v7

    mul-float v7, v7, v3

    float-to-int v3, v7

    invoke-direct {v4, v1, v1, v8, v3}, Lcom/moji/mjweather/weather/avatar/AdRect;-><init>(IIII)V

    goto :goto_0

    :cond_0
    move-object v5, v3

    .line 684
    :cond_1
    :goto_0
    invoke-virtual {v5}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_2

    if-eqz v4, :cond_2

    const/4 v3, 0x0

    .line 687
    :try_start_0
    iget-object v7, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v7}, Lcom/moji/mjweather/weather/avatar/AvatarView;->d(Lcom/moji/mjweather/weather/avatar/AvatarView;)Landroid/content/Context;

    move-result-object v7

    invoke-static {v7}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;

    move-result-object v7

    invoke-virtual {v7, v5}, Lcom/squareup/picasso/Picasso;->a(Ljava/io/File;)Lcom/squareup/picasso/RequestCreator;

    move-result-object v5

    invoke-virtual {v5}, Lcom/squareup/picasso/RequestCreator;->i()Landroid/graphics/Bitmap;

    move-result-object v5
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    move-object v3, v5

    goto :goto_1

    :catch_0
    move-exception v5

    const-string v7, "AvatarView"

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

    :goto_1
    if-eqz v3, :cond_2

    .line 691
    invoke-virtual {v3}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v5

    if-nez v5, :cond_2

    const-string v5, "AvatarView"

    const-string v7, "run: catch avatar"

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

    .line 694
    iput-object v3, v0, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 695
    iget-object v3, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v3}, Lcom/moji/mjweather/weather/avatar/AvatarView;->l(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/BaseAvatar;

    move-result-object v3

    iget-object v5, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v5}, Lcom/moji/mjweather/weather/avatar/AvatarView;->o(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/AdRect;

    move-result-object v5

    invoke-virtual {v3, v5}, Lcom/moji/mjweather/weather/avatar/BaseAvatar;->a(Lcom/moji/mjweather/weather/avatar/AdRect;)V

    const/4 v3, 0x1

    goto :goto_2

    :cond_2
    const/4 v3, 0x0

    :goto_2
    if-nez v3, :cond_6

    const-string v3, "AvatarView"

    const-string v4, "run: draw avatar"

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

    .line 702
    iget-object v3, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v3}, Lcom/moji/mjweather/weather/avatar/AvatarView;->l(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/BaseAvatar;

    move-result-object v3

    invoke-virtual {v3}, Lcom/moji/mjweather/weather/avatar/BaseAvatar;->b()Landroid/graphics/Bitmap;

    move-result-object v3

    const-string v4, "zdxprops"

    .line 703
    new-instance v5, Ljava/lang/StringBuilder;

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

    const-string v7, "  \u7ed8\u5236\u83ab\u5a1c\u5f62\u8c61 bitmap==null?  "

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

    if-nez v3, :cond_3

    const/4 v7, 0x1

    goto :goto_3

    :cond_3
    const/4 v7, 0x0

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

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

    move-result-object v5

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

    if-eqz v3, :cond_4

    .line 706
    iget-object v1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v1, v2}, Lcom/moji/mjweather/weather/avatar/AvatarView;->a(Lcom/moji/mjweather/weather/avatar/AvatarView;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const/16 v4, 0x64

    invoke-static {v1, v3, v4}, Lcom/moji/tool/FileTool;->a(Ljava/lang/String;Landroid/graphics/Bitmap;I)Z

    goto :goto_4

    .line 708
    :cond_4
    iget-object v4, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v4}, Lcom/moji/mjweather/weather/avatar/AvatarView;->h(Lcom/moji/mjweather/weather/avatar/AvatarView;)Z

    move-result v4

    if-eqz v4, :cond_5

    .line 709
    invoke-static {}, Lcom/moji/weathersence/avatar/AvatarConfig;->a()Lcom/moji/weathersence/avatar/AvatarConfig;

    move-result-object v4

    iget-object v5, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    iget-object v5, v5, Lcom/moji/mjweather/weather/avatar/AvatarView;->a:Lcom/moji/common/area/AreaInfo;

    invoke-virtual {v4, v5, v1}, Lcom/moji/weathersence/avatar/AvatarConfig;->a(Lcom/moji/common/area/AreaInfo;Z)V

    .line 710
    invoke-static {}, Lcom/moji/weathersence/MJSceneManager;->a()Lcom/moji/weathersence/MJSceneManager;

    move-result-object v1

    if-eqz v1, :cond_5

    invoke-static {}, Lcom/moji/weathersence/MJSceneManager;->a()Lcom/moji/weathersence/MJSceneManager;

    move-result-object v1

    invoke-virtual {v1}, Lcom/moji/weathersence/MJSceneManager;->m()Lcom/moji/weathersence/adavatar/AdAvatarControl;

    move-result-object v1

    if-eqz v1, :cond_5

    .line 711
    invoke-static {}, Lcom/moji/weathersence/MJSceneManager;->a()Lcom/moji/weathersence/MJSceneManager;

    move-result-object v1

    invoke-virtual {v1}, Lcom/moji/weathersence/MJSceneManager;->m()Lcom/moji/weathersence/adavatar/AdAvatarControl;

    move-result-object v1

    invoke-interface {v1}, Lcom/moji/weathersence/adavatar/AdAvatarControl;->a()V

    .line 715
    :cond_5
    :goto_4
    iput-object v3, v0, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 716
    iget-object v1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/avatar/AvatarView;->l(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/BaseAvatar;

    move-result-object v1

    invoke-virtual {v1}, Lcom/moji/mjweather/weather/avatar/BaseAvatar;->c()Lcom/moji/mjweather/weather/avatar/AdRect;

    move-result-object v4

    .line 717
    iget-object v1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/avatar/AvatarView;->m(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/AvatarRectManager;

    move-result-object v1

    invoke-virtual {v1, v2, v4}, Lcom/moji/mjweather/weather/avatar/AvatarRectManager;->a(Ljava/lang/String;Lcom/moji/mjweather/weather/avatar/AdRect;)Z

    :cond_6
    if-eqz v4, :cond_7

    .line 720
    iget-object v1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/avatar/AvatarView;->l(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/BaseAvatar;

    move-result-object v1

    invoke-virtual {v1, v4}, Lcom/moji/mjweather/weather/avatar/BaseAvatar;->b(Lcom/moji/mjweather/weather/avatar/AdRect;)V

    .line 723
    :cond_7
    iget-object v1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/avatar/AvatarView;->p(Lcom/moji/mjweather/weather/avatar/AvatarView;)Landroid/widget/ImageView;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v2}, Lcom/moji/mjweather/weather/avatar/AvatarView;->o(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/AdRect;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 726
    iget-object v1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/avatar/AvatarView;->k(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/AvatarView$AvatarHandler;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/moji/mjweather/weather/avatar/AvatarView$AvatarHandler;->sendMessage(Landroid/os/Message;)Z

    .line 727
    iget-object v1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/avatar/AvatarView;->q(Lcom/moji/mjweather/weather/avatar/AvatarView;)Z

    move-result v1

    if-eqz v1, :cond_8

    .line 730
    iget-object v1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/avatar/AvatarView;->j(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjad/avatar/AvatarAdControl;

    move-result-object v1

    iget-object v1, v1, Lcom/moji/mjad/avatar/AvatarAdControl;->a:Lcom/moji/mjad/avatar/AvatarPropsAdControl;

    invoke-virtual {v1}, Lcom/moji/mjad/avatar/AvatarPropsAdControl;->getAdInfo()Lcom/moji/mjad/base/data/MojiClickData;

    move-result-object v1

    check-cast v1, Lcom/moji/mjad/avatar/data/AvatarProperty;

    .line 731
    iget-object v2, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v2}, Lcom/moji/mjweather/weather/avatar/AvatarView;->l(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/BaseAvatar;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/moji/mjweather/weather/avatar/BaseAvatar;->b(Lcom/moji/mjad/avatar/data/AvatarProperty;)V

    .line 732
    iget-object v1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/avatar/AvatarView;->k(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/AvatarView$AvatarHandler;

    move-result-object v1

    invoke-virtual {v1, v6}, Lcom/moji/mjweather/weather/avatar/AvatarView$AvatarHandler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    .line 733
    iget-object v2, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v2}, Lcom/moji/mjweather/weather/avatar/AvatarView;->l(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/BaseAvatar;

    move-result-object v2

    invoke-virtual {v2}, Lcom/moji/mjweather/weather/avatar/BaseAvatar;->e()Lcom/moji/mjweather/weather/avatar/AssistDataEntity;

    move-result-object v2

    iput-object v2, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 734
    iget-object v2, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v2}, Lcom/moji/mjweather/weather/avatar/AvatarView;->k(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/AvatarView$AvatarHandler;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/moji/mjweather/weather/avatar/AvatarView$AvatarHandler;->sendMessage(Landroid/os/Message;)Z

    .line 738
    :cond_8
    iget-object v1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/avatar/AvatarView;->l(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/BaseAvatar;

    move-result-object v1

    if-eqz v1, :cond_9

    iget-object v1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/avatar/AvatarView;->l(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/BaseAvatar;

    move-result-object v1

    invoke-virtual {v1}, Lcom/moji/mjweather/weather/avatar/BaseAvatar;->a()Lcom/moji/mjad/avatar/data/AvatarProperty;

    move-result-object v1

    if-eqz v1, :cond_9

    .line 740
    iget-object v1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/avatar/AvatarView;->l(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/BaseAvatar;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v2}, Lcom/moji/mjweather/weather/avatar/AvatarView;->l(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/BaseAvatar;

    move-result-object v2

    invoke-virtual {v2}, Lcom/moji/mjweather/weather/avatar/BaseAvatar;->a()Lcom/moji/mjad/avatar/data/AvatarProperty;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/weather/avatar/BaseAvatar;->b(Lcom/moji/mjad/avatar/data/AvatarProperty;)V

    .line 741
    iget-object v1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/avatar/AvatarView;->k(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/AvatarView$AvatarHandler;

    move-result-object v1

    invoke-virtual {v1, v6}, Lcom/moji/mjweather/weather/avatar/AvatarView$AvatarHandler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    .line 742
    iget-object v2, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v2}, Lcom/moji/mjweather/weather/avatar/AvatarView;->l(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/BaseAvatar;

    move-result-object v2

    invoke-virtual {v2}, Lcom/moji/mjweather/weather/avatar/BaseAvatar;->e()Lcom/moji/mjweather/weather/avatar/AssistDataEntity;

    move-result-object v2

    iput-object v2, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 743
    iget-object v2, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v2}, Lcom/moji/mjweather/weather/avatar/AvatarView;->k(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/AvatarView$AvatarHandler;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/moji/mjweather/weather/avatar/AvatarView$AvatarHandler;->sendMessage(Landroid/os/Message;)Z

    .line 748
    :cond_9
    iget-object v0, v0, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-eqz v0, :cond_b

    .line 749
    iget-object v0, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    monitor-enter v0

    :try_start_1
    const-string v1, ""

    .line 751
    iget-object v2, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    iget-object v2, v2, Lcom/moji/mjweather/weather/avatar/AvatarView;->a:Lcom/moji/common/area/AreaInfo;

    if-eqz v2, :cond_a

    .line 752
    iget-object v1, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    iget-object v1, v1, Lcom/moji/mjweather/weather/avatar/AvatarView;->a:Lcom/moji/common/area/AreaInfo;

    invoke-virtual {v1}, Lcom/moji/common/area/AreaInfo;->getCacheKey()I

    move-result v1

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

    move-result-object v1

    .line 754
    :cond_a
    iget-object v2, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    iget-object v3, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->b:Lcom/moji/mjweather/weather/avatar/AvatarView;

    invoke-static {v3}, Lcom/moji/mjweather/weather/avatar/AvatarView;->l(Lcom/moji/mjweather/weather/avatar/AvatarView;)Lcom/moji/mjweather/weather/avatar/BaseAvatar;

    move-result-object v3

    new-instance v4, Ljava/lang/StringBuilder;

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

    iget-object v5, p0, Lcom/moji/mjweather/weather/avatar/AvatarView$4;->a:Ljava/lang/String;

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

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

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

    move-result-object v1

    invoke-virtual {v3, v1}, Lcom/moji/mjweather/weather/avatar/BaseAvatar;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v2, v1}, Lcom/moji/mjweather/weather/avatar/AvatarView;->c(Lcom/moji/mjweather/weather/avatar/AvatarView;Ljava/lang/String;)Ljava/lang/String;

    .line 756
    monitor-exit v0

    goto :goto_5

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v1

    :cond_b
    :goto_5
    return-void
.end method
