.class Lcom/moji/forum/ui/AllTopicListFragment$6;
.super Lcom/moji/requestcore/MJHttpCallback;
.source "AllTopicListFragment.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/forum/ui/AllTopicListFragment;->f()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/TopicBanner;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/forum/ui/AllTopicListFragment;


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

    .line 279
    iput-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

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

    return-void
.end method


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

    .line 282
    iget-object v0, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {v0, p1}, Lcom/moji/forum/ui/AllTopicListFragment;->a(Lcom/moji/forum/ui/AllTopicListFragment;Lcom/moji/http/mqn/entity/TopicBanner;)Lcom/moji/http/mqn/entity/TopicBanner;

    .line 283
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/AllTopicListFragment;->d(Lcom/moji/forum/ui/AllTopicListFragment;)Lcom/moji/http/mqn/entity/TopicBanner;

    move-result-object p1

    const/4 v0, 0x0

    if-eqz p1, :cond_3

    .line 284
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    const/4 v1, 0x1

    iput-boolean v1, p1, Lcom/moji/forum/ui/AllTopicListFragment;->b:Z

    .line 285
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    iget-object v2, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {v2}, Lcom/moji/forum/ui/AllTopicListFragment;->d(Lcom/moji/forum/ui/AllTopicListFragment;)Lcom/moji/http/mqn/entity/TopicBanner;

    move-result-object v2

    iget-object v2, v2, Lcom/moji/http/mqn/entity/TopicBanner;->banner_list:Ljava/util/List;

    invoke-static {p1, v2}, Lcom/moji/forum/ui/AllTopicListFragment;->a(Lcom/moji/forum/ui/AllTopicListFragment;Ljava/util/List;)V

    .line 286
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/AllTopicListFragment;->e(Lcom/moji/forum/ui/AllTopicListFragment;)Lcom/moji/emotion/CityIndexControlView;

    move-result-object p1

    iget-object v2, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {v2}, Lcom/moji/forum/ui/AllTopicListFragment;->a(Lcom/moji/forum/ui/AllTopicListFragment;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    invoke-virtual {p1, v2, v0}, Lcom/moji/emotion/CityIndexControlView;->c(II)V

    .line 288
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/AllTopicListFragment;->a(Lcom/moji/forum/ui/AllTopicListFragment;)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    const/4 v2, 0x2

    if-ne p1, v2, :cond_0

    .line 289
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/AllTopicListFragment;->f(Lcom/moji/forum/ui/AllTopicListFragment;)Lcom/moji/forum/view/FromCycleSlipPagerAdapter;

    move-result-object p1

    invoke-virtual {p1, v2}, Lcom/moji/forum/view/FromCycleSlipPagerAdapter;->a(I)V

    .line 290
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    iget-object v2, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {v2}, Lcom/moji/forum/ui/AllTopicListFragment;->d(Lcom/moji/forum/ui/AllTopicListFragment;)Lcom/moji/http/mqn/entity/TopicBanner;

    move-result-object v2

    iget-object v2, v2, Lcom/moji/http/mqn/entity/TopicBanner;->banner_list:Ljava/util/List;

    invoke-static {p1, v2}, Lcom/moji/forum/ui/AllTopicListFragment;->a(Lcom/moji/forum/ui/AllTopicListFragment;Ljava/util/List;)V

    .line 292
    :cond_0
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/AllTopicListFragment;->f(Lcom/moji/forum/ui/AllTopicListFragment;)Lcom/moji/forum/view/FromCycleSlipPagerAdapter;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/forum/view/FromCycleSlipPagerAdapter;->notifyDataSetChanged()V

    .line 293
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/AllTopicListFragment;->a(Lcom/moji/forum/ui/AllTopicListFragment;)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    const/16 v2, 0x8

    if-le p1, v1, :cond_1

    .line 294
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/AllTopicListFragment;->e(Lcom/moji/forum/ui/AllTopicListFragment;)Lcom/moji/emotion/CityIndexControlView;

    move-result-object p1

    invoke-virtual {p1, v0}, Lcom/moji/emotion/CityIndexControlView;->setVisibility(I)V

    .line 295
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/AllTopicListFragment;->g(Lcom/moji/forum/ui/AllTopicListFragment;)Lcom/moji/viewpager/CycleSlipViewPager;

    move-result-object p1

    iget-object v1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {v1}, Lcom/moji/forum/ui/AllTopicListFragment;->a(Lcom/moji/forum/ui/AllTopicListFragment;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    mul-int/lit16 v1, v1, 0x3e8

    invoke-virtual {p1, v1, v0}, Lcom/moji/viewpager/CycleSlipViewPager;->setCurrentItem(IZ)V

    goto :goto_0

    .line 297
    :cond_1
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/AllTopicListFragment;->e(Lcom/moji/forum/ui/AllTopicListFragment;)Lcom/moji/emotion/CityIndexControlView;

    move-result-object p1

    invoke-virtual {p1, v2}, Lcom/moji/emotion/CityIndexControlView;->setVisibility(I)V

    .line 298
    :goto_0
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/AllTopicListFragment;->a(Lcom/moji/forum/ui/AllTopicListFragment;)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-lez p1, :cond_2

    .line 299
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

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

    move-result-object p1

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

    goto :goto_1

    .line 301
    :cond_2
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

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

    move-result-object p1

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

    .line 302
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    iget-object p1, p1, Lcom/moji/forum/ui/AllTopicListFragment;->f:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {v1}, Lcom/moji/forum/ui/AllTopicListFragment;->h(Lcom/moji/forum/ui/AllTopicListFragment;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/widget/ListView;->removeHeaderView(Landroid/view/View;)Z

    .line 304
    :goto_1
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/AllTopicListFragment;->f(Lcom/moji/forum/ui/AllTopicListFragment;)Lcom/moji/forum/view/FromCycleSlipPagerAdapter;

    move-result-object p1

    const/16 v1, 0x1f40

    invoke-virtual {p1, v1}, Lcom/moji/forum/view/FromCycleSlipPagerAdapter;->b(I)V

    .line 306
    :cond_3
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

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

    return-void
.end method

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

    .line 311
    iget-object p1, p0, Lcom/moji/forum/ui/AllTopicListFragment$6;->a:Lcom/moji/forum/ui/AllTopicListFragment;

    const/4 v0, 0x0

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

    return-void
.end method

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

    .line 279
    check-cast p1, Lcom/moji/http/mqn/entity/TopicBanner;

    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/AllTopicListFragment$6;->a(Lcom/moji/http/mqn/entity/TopicBanner;)V

    return-void
.end method
