.class public Lcom/moji/mjweather/scenestore/SceneImageFragment;
.super Lcom/moji/mjweather/scenestore/DetailPageFragment;
.source "SceneImageFragment.java"


# instance fields
.field private d:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 21
    invoke-direct {p0}, Lcom/moji/mjweather/scenestore/DetailPageFragment;-><init>()V

    return-void
.end method

.method public static a(Ljava/lang/String;)Lcom/moji/mjweather/scenestore/SceneImageFragment;
    .locals 3

    .line 26
    new-instance v0, Lcom/moji/mjweather/scenestore/SceneImageFragment;

    invoke-direct {v0}, Lcom/moji/mjweather/scenestore/SceneImageFragment;-><init>()V

    .line 27
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    const-string v2, "param1"

    .line 28
    invoke-virtual {v1, v2, p0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 29
    invoke-virtual {v0, v1}, Lcom/moji/mjweather/scenestore/SceneImageFragment;->setArguments(Landroid/os/Bundle;)V

    return-object v0
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 35
    invoke-super {p0, p1}, Lcom/moji/mjweather/scenestore/DetailPageFragment;->onCreate(Landroid/os/Bundle;)V

    .line 36
    invoke-virtual {p0}, Lcom/moji/mjweather/scenestore/SceneImageFragment;->getArguments()Landroid/os/Bundle;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 37
    invoke-virtual {p0}, Lcom/moji/mjweather/scenestore/SceneImageFragment;->getArguments()Landroid/os/Bundle;

    move-result-object p1

    const-string v0, "param1"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjweather/scenestore/SceneImageFragment;->d:Ljava/lang/String;

    :cond_0
    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 1

    const p3, 0x7f0b0121

    const/4 v0, 0x0

    .line 44
    invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    .line 46
    invoke-virtual {p0}, Lcom/moji/mjweather/scenestore/SceneImageFragment;->getContext()Landroid/content/Context;

    move-result-object p2

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

    move-result-object p2

    iget-object p3, p0, Lcom/moji/mjweather/scenestore/SceneImageFragment;->d:Ljava/lang/String;

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

    move-result-object p2

    invoke-virtual {p2, p1}, Lcom/squareup/picasso/RequestCreator;->a(Landroid/widget/ImageView;)V

    .line 48
    new-instance p2, Lcom/moji/mjweather/scenestore/SceneImageFragment$1;

    invoke-direct {p2, p0, p1}, Lcom/moji/mjweather/scenestore/SceneImageFragment$1;-><init>(Lcom/moji/mjweather/scenestore/SceneImageFragment;Landroid/widget/ImageView;)V

    invoke-virtual {p1, p2}, Landroid/widget/ImageView;->post(Ljava/lang/Runnable;)Z

    return-object p1
.end method
