.class Lcom/moji/mjsnowmodule/SnowEntryActivity$2;
.super Ljava/lang/Object;
.source "SnowEntryActivity.java"

# interfaces
.implements Lcom/squareup/picasso/Target;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjsnowmodule/SnowEntryActivity;->a()V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/mjsnowmodule/SnowEntryActivity;


# direct methods
.method constructor <init>(Lcom/moji/mjsnowmodule/SnowEntryActivity;)V
    .locals 0

    .line 73
    iput-object p1, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

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

    return-void
.end method


# virtual methods
.method public a(Landroid/graphics/Bitmap;Lcom/squareup/picasso/Picasso$LoadedFrom;)V
    .locals 4

    if-eqz p1, :cond_0

    .line 76
    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I

    move-result p2

    if-lez p2, :cond_0

    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result p2

    if-lez p2, :cond_0

    .line 77
    iget-object p2, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

    invoke-static {p2}, Lcom/moji/mjsnowmodule/SnowEntryActivity;->b(Lcom/moji/mjsnowmodule/SnowEntryActivity;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    move-result-object p2

    invoke-virtual {p2}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->b()V

    .line 78
    iget-object p2, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

    invoke-static {p2}, Lcom/moji/mjsnowmodule/SnowEntryActivity;->c(Lcom/moji/mjsnowmodule/SnowEntryActivity;)Landroid/widget/ImageView;

    move-result-object p2

    invoke-virtual {p2, p1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

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

    move-result p2

    .line 80
    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v0

    int-to-double v0, v0

    int-to-double v2, p2

    invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z

    invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v0, v2

    .line 81
    iget-object p2, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

    invoke-static {p2}, Lcom/moji/mjsnowmodule/SnowEntryActivity;->c(Lcom/moji/mjsnowmodule/SnowEntryActivity;)Landroid/widget/ImageView;

    move-result-object p2

    invoke-virtual {p2}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p2

    check-cast p2, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x1

    .line 82
    iput v2, p2, Landroid/widget/RelativeLayout$LayoutParams;->width:I

    .line 83
    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result p1

    int-to-double v2, p1

    invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v2, v0

    double-to-int p1, v2

    iput p1, p2, Landroid/widget/RelativeLayout$LayoutParams;->height:I

    .line 84
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

    invoke-static {p1}, Lcom/moji/mjsnowmodule/SnowEntryActivity;->c(Lcom/moji/mjsnowmodule/SnowEntryActivity;)Landroid/widget/ImageView;

    move-result-object p1

    invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :cond_0
    return-void
.end method

.method public a(Landroid/graphics/drawable/Drawable;)V
    .locals 2

    .line 90
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

    invoke-static {p1}, Lcom/moji/mjsnowmodule/SnowEntryActivity;->d(Lcom/moji/mjsnowmodule/SnowEntryActivity;)I

    move-result p1

    const/4 v0, 0x2

    if-ge p1, v0, :cond_0

    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

    invoke-static {p1}, Lcom/moji/mjsnowmodule/SnowEntryActivity;->e(Lcom/moji/mjsnowmodule/SnowEntryActivity;)Ljava/lang/String;

    move-result-object p1

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

    move-result p1

    if-nez p1, :cond_0

    .line 91
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

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

    move-result-object p1

    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

    invoke-static {v0}, Lcom/moji/mjsnowmodule/SnowEntryActivity;->e(Lcom/moji/mjsnowmodule/SnowEntryActivity;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/squareup/picasso/Picasso;->a(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

    invoke-static {v0}, Lcom/moji/mjsnowmodule/SnowEntryActivity;->f(Lcom/moji/mjsnowmodule/SnowEntryActivity;)Lcom/squareup/picasso/Target;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/squareup/picasso/RequestCreator;->a(Lcom/squareup/picasso/Target;)V

    goto :goto_0

    .line 93
    :cond_0
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

    invoke-static {p1}, Lcom/moji/mjsnowmodule/SnowEntryActivity;->b(Lcom/moji/mjsnowmodule/SnowEntryActivity;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->E()V

    const-string p1, "SnowEntryActivity"

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

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

    const-string v1, "\u56fe\u7247\u52a0\u8f7d\u5931\u8d25"

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

    iget-object v1, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

    invoke-static {v1}, Lcom/moji/mjsnowmodule/SnowEntryActivity;->e(Lcom/moji/mjsnowmodule/SnowEntryActivity;)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

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

    :goto_0
    return-void
.end method

.method public b(Landroid/graphics/drawable/Drawable;)V
    .locals 1

    .line 100
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

    invoke-static {p1}, Lcom/moji/mjsnowmodule/SnowEntryActivity;->d(Lcom/moji/mjsnowmodule/SnowEntryActivity;)I

    move-result p1

    const/4 v0, 0x2

    if-ge p1, v0, :cond_0

    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

    invoke-static {p1}, Lcom/moji/mjsnowmodule/SnowEntryActivity;->e(Lcom/moji/mjsnowmodule/SnowEntryActivity;)Ljava/lang/String;

    move-result-object p1

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

    move-result p1

    if-nez p1, :cond_0

    .line 101
    iget-object p1, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

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

    move-result-object p1

    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

    invoke-static {v0}, Lcom/moji/mjsnowmodule/SnowEntryActivity;->e(Lcom/moji/mjsnowmodule/SnowEntryActivity;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/squareup/picasso/Picasso;->a(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/mjsnowmodule/SnowEntryActivity$2;->a:Lcom/moji/mjsnowmodule/SnowEntryActivity;

    invoke-static {v0}, Lcom/moji/mjsnowmodule/SnowEntryActivity;->f(Lcom/moji/mjsnowmodule/SnowEntryActivity;)Lcom/squareup/picasso/Target;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/squareup/picasso/RequestCreator;->a(Lcom/squareup/picasso/Target;)V

    :cond_0
    return-void
.end method
