.class public Lcom/moji/user/homepage/fragment/InformationFragment;
.super Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;
.source "InformationFragment.java"

# interfaces
.implements Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow$OnMenuItemClickListener;
.implements Lcom/moji/user/homepage/cell/InformationCell$InformationCellClick;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;",
        "Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow$OnMenuItemClickListener<",
        "Ljava/lang/String;",
        ">;",
        "Lcom/moji/user/homepage/cell/InformationCell$InformationCellClick;"
    }
.end annotation


# instance fields
.field private e:Lcom/moji/http/snsforum/entity/Information;

.field private f:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;


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

    .line 27
    invoke-direct {p0}, Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;-><init>()V

    return-void
.end method

.method public static a(Lcom/moji/http/snsforum/entity/Information;)Lcom/moji/user/homepage/fragment/InformationFragment;
    .locals 3

    .line 34
    new-instance v0, Lcom/moji/user/homepage/fragment/InformationFragment;

    invoke-direct {v0}, Lcom/moji/user/homepage/fragment/InformationFragment;-><init>()V

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

    const/4 v2, 0x5

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

    const-string v2, "infomation"

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

    .line 37
    invoke-virtual {v0, v1}, Lcom/moji/user/homepage/fragment/InformationFragment;->setArguments(Landroid/os/Bundle;)V

    return-object v0
.end method


# virtual methods
.method public a(Landroid/view/View;)V
    .locals 3

    .line 104
    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->f:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    if-nez v0, :cond_0

    .line 105
    new-instance v0, Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    invoke-virtual {p0}, Lcom/moji/user/homepage/fragment/InformationFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->f:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    .line 106
    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->f:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    invoke-virtual {v0, p0}, Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;->a(Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow$OnMenuItemClickListener;)V

    .line 107
    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->f:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    sget v1, Lcom/moji/user/R$drawable;->selector_information_item:I

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;->a(I)V

    .line 109
    :cond_0
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 110
    iget-object v1, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->f:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    invoke-virtual {v1}, Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;->a()Z

    move-result v1

    if-nez v1, :cond_1

    .line 111
    iget-object v1, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->f:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    sget v2, Lcom/moji/user/R$string;->copy_user_id:I

    invoke-static {v2}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, p1, v2, v0}, Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;->a(Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V

    goto :goto_0

    .line 113
    :cond_1
    iget-object p1, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->f:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    invoke-virtual {p1}, Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;->b()V

    :goto_0
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    .line 119
    invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;

    move-result-object p1

    const-string v0, "clipboard"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/content/ClipboardManager;

    if-eqz p1, :cond_0

    const/4 v0, 0x0

    .line 121
    invoke-static {v0, p2}, Landroid/content/ClipData;->newPlainText(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Landroid/content/ClipData;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/content/ClipboardManager;->setPrimaryClip(Landroid/content/ClipData;)V

    :cond_0
    return-void
.end method

.method public a(Z)V
    .locals 0

    return-void
.end method

.method public b(Lcom/moji/http/snsforum/entity/Information;)V
    .locals 3

    .line 74
    iput-object p1, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->e:Lcom/moji/http/snsforum/entity/Information;

    .line 75
    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->d:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;

    if-nez v0, :cond_0

    goto :goto_0

    .line 78
    :cond_0
    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->d:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

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

    .line 79
    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;

    invoke-virtual {v0}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->d()V

    .line 80
    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;

    new-instance v1, Lcom/moji/user/homepage/cell/InformationCell;

    invoke-virtual {p0}, Lcom/moji/user/homepage/fragment/InformationFragment;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2, p1, p0}, Lcom/moji/user/homepage/cell/InformationCell;-><init>(Landroid/content/Context;Lcom/moji/http/snsforum/entity/Information;Lcom/moji/user/homepage/cell/InformationCell$InformationCellClick;)V

    invoke-virtual {v0, v1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a(Lcom/moji/newliveview/dynamic/base/Cell;)V

    if-eqz p1, :cond_1

    .line 81
    iget-object v0, p1, Lcom/moji/http/snsforum/entity/Information;->tag_list:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    iget-object v0, p1, Lcom/moji/http/snsforum/entity/Information;->tag_list:Ljava/util/ArrayList;

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

    move-result v0

    if-lez v0, :cond_1

    .line 82
    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;

    new-instance v1, Lcom/moji/user/homepage/cell/TagCell;

    invoke-direct {v1, p1}, Lcom/moji/user/homepage/cell/TagCell;-><init>(Lcom/moji/http/snsforum/entity/Information;)V

    invoke-virtual {v0, v1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a(Lcom/moji/newliveview/dynamic/base/Cell;)V

    .line 84
    :cond_1
    iget-object p1, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;

    invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->c()V

    return-void

    :cond_2
    :goto_0
    return-void
.end method

.method public connectivityChange(Lcom/moji/user/homepage/event/CertificateStatusChangeEvent;)V
    .locals 1
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    .line 89
    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->e:Lcom/moji/http/snsforum/entity/Information;

    if-nez v0, :cond_0

    return-void

    .line 92
    :cond_0
    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->e:Lcom/moji/http/snsforum/entity/Information;

    iget p1, p1, Lcom/moji/user/homepage/event/CertificateStatusChangeEvent;->a:I

    iput p1, v0, Lcom/moji/http/snsforum/entity/Information;->offical_status:I

    .line 93
    iget-object p1, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;

    invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->c()V

    return-void
.end method

.method public e()I
    .locals 1

    .line 60
    sget v0, Lcom/moji/user/R$layout;->fragment_picture:I

    return v0
.end method

.method public h()Ljava/lang/Object;
    .locals 1

    const/4 v0, 0x0

    return-object v0
.end method

.method public i()Z
    .locals 1

    .line 126
    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->f:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->f:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    invoke-virtual {v0}, Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 127
    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->f:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    invoke-virtual {v0}, Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;->b()V

    const/4 v0, 0x1

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 43
    invoke-super {p0, p1}, Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;->onCreate(Landroid/os/Bundle;)V

    .line 44
    invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;

    move-result-object p1

    invoke-virtual {p1, p0}, Lcom/moji/bus/Bus;->a(Ljava/lang/Object;)V

    return-void
.end method

.method public onDestroy()V
    .locals 1

    .line 98
    invoke-super {p0}, Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;->onDestroy()V

    .line 99
    invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/moji/bus/Bus;->b(Ljava/lang/Object;)V

    return-void
.end method

.method public synthetic onMenuItemClick(Ljava/lang/String;Ljava/lang/Object;)V
    .locals 0

    .line 27
    check-cast p2, Ljava/lang/String;

    invoke-virtual {p0, p1, p2}, Lcom/moji/user/homepage/fragment/InformationFragment;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public w_()V
    .locals 2

    .line 49
    invoke-super {p0}, Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;->w_()V

    .line 50
    invoke-virtual {p0}, Lcom/moji/user/homepage/fragment/InformationFragment;->getArguments()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "infomation"

    .line 52
    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/moji/http/snsforum/entity/Information;

    iput-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->e:Lcom/moji/http/snsforum/entity/Information;

    .line 54
    :cond_0
    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->e:Lcom/moji/http/snsforum/entity/Information;

    invoke-virtual {p0, v0}, Lcom/moji/user/homepage/fragment/InformationFragment;->b(Lcom/moji/http/snsforum/entity/Information;)V

    .line 55
    iget-object v0, p0, Lcom/moji/user/homepage/fragment/InformationFragment;->d:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    const-string v1, "#f8f9fb"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->setBackgroundColor(I)V

    return-void
.end method
