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


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjweather/scenestore/SceneGifFragment$LoadGifTask;
    }
.end annotation


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


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

    .line 34
    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/SceneGifFragment;
    .locals 3

    .line 39
    new-instance v0, Lcom/moji/mjweather/scenestore/SceneGifFragment;

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

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

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

    const-string v2, "param1"

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

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

    return-object v0
.end method


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

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

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

    move-result-object p1

    if-eqz p1, :cond_0

    .line 50
    invoke-virtual {p0}, Lcom/moji/mjweather/scenestore/SceneGifFragment;->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/SceneGifFragment;->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/4 p3, 0x0

    const v0, 0x7f0b0121

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

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    .line 60
    new-instance p2, Lcom/moji/mjweather/scenestore/SceneGifFragment$LoadGifTask;

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

    invoke-direct {p2, v0, p1}, Lcom/moji/mjweather/scenestore/SceneGifFragment$LoadGifTask;-><init>(Ljava/lang/String;Landroid/widget/ImageView;)V

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

    new-array p3, p3, [Ljava/lang/Void;

    invoke-virtual {p2, v0, p3}, Lcom/moji/mjweather/scenestore/SceneGifFragment$LoadGifTask;->a(Lcom/moji/tool/thread/ThreadType;[Ljava/lang/Object;)Lcom/moji/tool/thread/task/MJAsyncTask;

    .line 61
    new-instance p2, Lcom/moji/mjweather/scenestore/SceneGifFragment$1;

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

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

    return-object p1
.end method
