.class Lcom/moji/forum/ui/IslandFragment$3;
.super Lcom/moji/requestcore/MJHttpCallback;
.source "IslandFragment.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/forum/ui/IslandFragment;->a(Z)V
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/requestcore/MJHttpCallback<",
        "Lcom/moji/http/mqn/entity/AllTopic;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Z

.field final synthetic b:Lcom/moji/forum/ui/IslandFragment;


# direct methods
.method constructor <init>(Lcom/moji/forum/ui/IslandFragment;Z)V
    .locals 0

    .line 121
    iput-object p1, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    iput-boolean p2, p0, Lcom/moji/forum/ui/IslandFragment$3;->a:Z

    invoke-direct {p0}, Lcom/moji/requestcore/MJHttpCallback;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/http/mqn/entity/AllTopic;)V
    .locals 4

    .line 124
    iget-object v0, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    invoke-virtual {v0}, Lcom/moji/forum/ui/IslandFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 125
    :cond_0
    iget-object v0, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/moji/forum/ui/IslandFragment;->b(Lcom/moji/forum/ui/IslandFragment;Z)Z

    .line 126
    iget-boolean v0, p0, Lcom/moji/forum/ui/IslandFragment$3;->a:Z

    if-eqz v0, :cond_1

    .line 127
    iget-object v0, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    invoke-static {v0, v1}, Lcom/moji/forum/ui/IslandFragment;->c(Lcom/moji/forum/ui/IslandFragment;Z)Z

    .line 128
    iget-object v0, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    invoke-static {v0}, Lcom/moji/forum/ui/IslandFragment;->c(Lcom/moji/forum/ui/IslandFragment;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :cond_1
    if-eqz p1, :cond_5

    .line 131
    iget-object v0, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    iget-object v2, p1, Lcom/moji/http/mqn/entity/AllTopic;->page_cursor:Ljava/lang/String;

    invoke-static {v0, v2}, Lcom/moji/forum/ui/IslandFragment;->a(Lcom/moji/forum/ui/IslandFragment;Ljava/lang/String;)Ljava/lang/String;

    .line 132
    iget-object v0, p1, Lcom/moji/http/mqn/entity/AllTopic;->list:Ljava/util/ArrayList;

    if-eqz v0, :cond_2

    iget-object v0, p1, Lcom/moji/http/mqn/entity/AllTopic;->list:Ljava/util/ArrayList;

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

    move-result v0

    if-eqz v0, :cond_2

    .line 133
    iget-object v0, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    invoke-static {v0}, Lcom/moji/forum/ui/IslandFragment;->d(Lcom/moji/forum/ui/IslandFragment;)Lcom/moji/forum/ui/IslandAdapter;

    move-result-object v0

    iget-object v2, p1, Lcom/moji/http/mqn/entity/AllTopic;->list:Ljava/util/ArrayList;

    iget-boolean v3, p0, Lcom/moji/forum/ui/IslandFragment$3;->a:Z

    invoke-virtual {v0, v2, v3}, Lcom/moji/forum/ui/IslandAdapter;->a(Ljava/util/ArrayList;Z)V

    .line 135
    :cond_2
    iget-object v0, p1, Lcom/moji/http/mqn/entity/AllTopic;->list:Ljava/util/ArrayList;

    if-eqz v0, :cond_4

    iget-object p1, p1, Lcom/moji/http/mqn/entity/AllTopic;->list:Ljava/util/ArrayList;

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

    move-result p1

    const/16 v0, 0x14

    if-ge p1, v0, :cond_3

    goto :goto_0

    .line 139
    :cond_3
    iget-object p1, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/IslandFragment;->c(Lcom/moji/forum/ui/IslandFragment;)Landroid/widget/LinearLayout;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 140
    iget-object p1, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/IslandFragment;->e(Lcom/moji/forum/ui/IslandFragment;)I

    goto :goto_1

    .line 136
    :cond_4
    :goto_0
    iget-object p1, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    const/4 v0, 0x1

    invoke-static {p1, v0}, Lcom/moji/forum/ui/IslandFragment;->c(Lcom/moji/forum/ui/IslandFragment;Z)Z

    .line 137
    iget-object p1, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/IslandFragment;->c(Lcom/moji/forum/ui/IslandFragment;)Landroid/widget/LinearLayout;

    move-result-object p1

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 143
    :cond_5
    :goto_1
    iget-boolean p1, p0, Lcom/moji/forum/ui/IslandFragment$3;->a:Z

    if-eqz p1, :cond_6

    iget-object p1, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    iget-object p1, p1, Lcom/moji/forum/ui/IslandFragment;->e:Lcom/moji/forum/ui/PostListFragment$OnRefreshListener;

    if-eqz p1, :cond_6

    .line 144
    iget-object p1, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    iget-object p1, p1, Lcom/moji/forum/ui/IslandFragment;->e:Lcom/moji/forum/ui/PostListFragment$OnRefreshListener;

    const/4 v0, 0x7

    invoke-interface {p1, v0}, Lcom/moji/forum/ui/PostListFragment$OnRefreshListener;->a(I)V

    :cond_6
    return-void
.end method

.method protected onFailed(Lcom/moji/requestcore/MJException;)V
    .locals 1

    .line 150
    iget-boolean p1, p0, Lcom/moji/forum/ui/IslandFragment$3;->a:Z

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    iget-object p1, p1, Lcom/moji/forum/ui/IslandFragment;->e:Lcom/moji/forum/ui/PostListFragment$OnRefreshListener;

    if-eqz p1, :cond_0

    .line 151
    iget-object p1, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    iget-object p1, p1, Lcom/moji/forum/ui/IslandFragment;->e:Lcom/moji/forum/ui/PostListFragment$OnRefreshListener;

    const/4 v0, 0x7

    invoke-interface {p1, v0}, Lcom/moji/forum/ui/PostListFragment$OnRefreshListener;->a(I)V

    .line 153
    :cond_0
    iget-object p1, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    invoke-virtual {p1}, Lcom/moji/forum/ui/IslandFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object p1

    if-nez p1, :cond_1

    return-void

    .line 155
    :cond_1
    iget-object p1, p0, Lcom/moji/forum/ui/IslandFragment$3;->b:Lcom/moji/forum/ui/IslandFragment;

    const/4 v0, 0x0

    invoke-static {p1, v0}, Lcom/moji/forum/ui/IslandFragment;->b(Lcom/moji/forum/ui/IslandFragment;Z)Z

    return-void
.end method

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

    .line 121
    check-cast p1, Lcom/moji/http/mqn/entity/AllTopic;

    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/IslandFragment$3;->a(Lcom/moji/http/mqn/entity/AllTopic;)V

    return-void
.end method
