.class public Lcom/moji/forum/ui/ForumMainFragment;
.super Lcom/moji/base/MJFragment;
.source "ForumMainFragment.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/moji/forum/ui/PostListFragment$OnRefreshListener;


# instance fields
.field private A:Landroid/support/v4/app/FragmentActivity;

.field private B:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

.field public b:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/mqn/entity/Coterie;",
            ">;"
        }
    .end annotation
.end field

.field protected c:Z

.field private d:Landroid/support/v4/view/ViewPager;

.field private e:Lcom/moji/emotion/CityIndexControlView;

.field private f:Lcom/moji/forum/ui/CoteriePagerAdapter;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/TextView;

.field private i:Landroid/widget/TextView;

.field private j:Landroid/widget/TextView;

.field private k:Lcom/moji/forum/view/PostViewPager;

.field private l:Lcom/moji/forum/ui/PostTabPagerAdapter;

.field private m:Landroid/view/View;

.field private n:Lcom/moji/forum/view/ForumScrollView;

.field private o:Lcom/moji/pulltorefresh/PullToFreshContainer;

.field private p:Landroid/view/View;

.field private q:Lcom/moji/viewpager/CycleSlipViewPager;

.field private r:Lcom/moji/emotion/CityIndexControlView;

.field private s:Lcom/moji/forum/view/FromCycleSlipPagerAdapter;

.field private final t:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/forum/view/FormHeaderData;",
            ">;"
        }
    .end annotation
.end field

.field private u:Landroid/graphics/drawable/ColorDrawable;

.field private v:Z

.field private w:Z

.field private x:Landroid/widget/LinearLayout;

.field private y:Landroid/widget/LinearLayout;

.field private final z:Landroid/support/v4/util/ArrayMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/support/v4/util/ArrayMap<",
            "Ljava/lang/Integer;",
            "Lcom/moji/forum/ui/PostListFragment;",
            ">;"
        }
    .end annotation
.end field


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

    .line 55
    invoke-direct {p0}, Lcom/moji/base/MJFragment;-><init>()V

    .line 70
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->b:Ljava/util/ArrayList;

    .line 75
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->t:Ljava/util/List;

    const/4 v0, 0x1

    .line 78
    iput-boolean v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->v:Z

    .line 83
    new-instance v0, Landroid/support/v4/util/ArrayMap;

    invoke-direct {v0}, Landroid/support/v4/util/ArrayMap;-><init>()V

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->z:Landroid/support/v4/util/ArrayMap;

    return-void
.end method

.method static synthetic a(Lcom/moji/forum/ui/ForumMainFragment;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
    .locals 0

    .line 55
    iget-object p0, p0, Lcom/moji/forum/ui/ForumMainFragment;->B:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    return-object p0
.end method

.method static synthetic a(Lcom/moji/forum/ui/ForumMainFragment;Ljava/util/List;)V
    .locals 0

    .line 55
    invoke-direct {p0, p1}, Lcom/moji/forum/ui/ForumMainFragment;->a(Ljava/util/List;)V

    return-void
.end method

.method private a(Ljava/util/List;)V
    .locals 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/http/mqn/entity/TopicBanner$Banner;",
            ">;)V"
        }
    .end annotation

    const/4 v0, 0x0

    .line 196
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_1

    .line 197
    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/http/mqn/entity/TopicBanner$Banner;

    iget v1, v1, Lcom/moji/http/mqn/entity/TopicBanner$Banner;->type:I

    const/4 v2, 0x3

    if-ne v1, v2, :cond_0

    .line 198
    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/http/mqn/entity/TopicBanner$Banner;

    .line 199
    iget-object v2, p0, Lcom/moji/forum/ui/ForumMainFragment;->A:Landroid/support/v4/app/FragmentActivity;

    invoke-static {v2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    sget v3, Lcom/moji/forum/R$layout;->topic_square_banner:I

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/RelativeLayout;

    .line 200
    sget v3, Lcom/moji/forum/R$id;->iv_topic_square_bg:I

    invoke-virtual {v2, v3}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    .line 201
    sget v4, Lcom/moji/forum/R$id;->tv_topic_square_button:I

    invoke-virtual {v2, v4}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 202
    sget v5, Lcom/moji/forum/R$id;->tv_topic_square_title:I

    invoke-virtual {v2, v5}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 203
    sget v6, Lcom/moji/forum/R$id;->tv_topic_square_join_num:I

    invoke-virtual {v2, v6}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    .line 204
    iget-object v7, v1, Lcom/moji/http/mqn/entity/TopicBanner$Banner;->img_path:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/moji/forum/ui/ForumMainFragment;->a()Landroid/graphics/drawable/Drawable;

    move-result-object v8

    invoke-static {v3, v7, v8}, Lcom/moji/forum/common/ForumUtil;->a(Landroid/widget/ImageView;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V

    .line 205
    iget-object v7, v1, Lcom/moji/http/mqn/entity/TopicBanner$Banner;->square_name:Ljava/lang/String;

    invoke-virtual {v5, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 206
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v7, v1, Lcom/moji/http/mqn/entity/TopicBanner$Banner;->square_show_count:Ljava/lang/String;

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget v7, Lcom/moji/forum/R$string;->square_people_join:I

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

    move-result-object v7

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v6, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 207
    iget-object v5, v1, Lcom/moji/http/mqn/entity/TopicBanner$Banner;->square_show_name:Ljava/lang/String;

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 208
    invoke-virtual {v4}, Landroid/widget/TextView;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object v5

    check-cast v5, Landroid/graphics/drawable/GradientDrawable;

    const/16 v6, 0x10

    const/4 v7, -0x1

    .line 211
    :try_start_0
    iget-object v8, v1, Lcom/moji/http/mqn/entity/TopicBanner$Banner;->square_color:Ljava/lang/String;

    invoke-static {v8, v6}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I

    move-result v8
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v8

    const-string v9, "ForumMainFragment"

    .line 213
    invoke-static {v9, v8}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    const/4 v8, -0x1

    :goto_1
    const/high16 v9, -0x1000000

    or-int/2addr v8, v9

    .line 216
    invoke-virtual {v5, v8}, Landroid/graphics/drawable/GradientDrawable;->setColor(I)V

    .line 219
    :try_start_1
    iget-object v5, v1, Lcom/moji/http/mqn/entity/TopicBanner$Banner;->square_show_name_color:Ljava/lang/String;

    invoke-static {v5, v6}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I

    move-result v5
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_2

    :catch_1
    move-exception v5

    const-string v6, "ForumMainFragment"

    .line 221
    invoke-static {v6, v5}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    const/4 v5, -0x1

    :goto_2
    or-int/2addr v5, v9

    .line 224
    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setTextColor(I)V

    .line 225
    iget-object v4, p0, Lcom/moji/forum/ui/ForumMainFragment;->t:Ljava/util/List;

    new-instance v5, Lcom/moji/forum/view/FormHeaderData;

    invoke-direct {v5, v2}, Lcom/moji/forum/view/FormHeaderData;-><init>(Ljava/lang/Object;)V

    invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 226
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v3, v2}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 228
    new-instance v2, Lcom/moji/forum/ui/ForumMainFragment$2;

    invoke-direct {v2, p0, v0, v1}, Lcom/moji/forum/ui/ForumMainFragment$2;-><init>(Lcom/moji/forum/ui/ForumMainFragment;ILcom/moji/http/mqn/entity/TopicBanner$Banner;)V

    invoke-virtual {v3, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_3

    .line 241
    :cond_0
    new-instance v1, Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/moji/forum/ui/ForumMainFragment;->A:Landroid/support/v4/app/FragmentActivity;

    invoke-direct {v1, v2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 242
    sget-object v2, Landroid/widget/ImageView$ScaleType;->CENTER_CROP:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 243
    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/moji/http/mqn/entity/TopicBanner$Banner;

    .line 244
    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 245
    sget v3, Lcom/moji/forum/R$id;->iv_topic_square_bg:I

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Landroid/widget/ImageView;->setTag(ILjava/lang/Object;)V

    .line 246
    new-instance v3, Lcom/moji/forum/ui/ForumMainFragment$3;

    invoke-direct {v3, p0}, Lcom/moji/forum/ui/ForumMainFragment$3;-><init>(Lcom/moji/forum/ui/ForumMainFragment;)V

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 269
    iget-object v2, v2, Lcom/moji/http/mqn/entity/TopicBanner$Banner;->img_path:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/moji/forum/ui/ForumMainFragment;->a()Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-static {v1, v2, v3}, Lcom/moji/forum/common/ForumUtil;->a(Landroid/widget/ImageView;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V

    .line 270
    iget-object v2, p0, Lcom/moji/forum/ui/ForumMainFragment;->t:Ljava/util/List;

    new-instance v3, Lcom/moji/forum/view/FormHeaderData;

    invoke-direct {v3, v1}, Lcom/moji/forum/view/FormHeaderData;-><init>(Ljava/lang/Object;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :goto_3
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_0

    :cond_1
    return-void
.end method

.method static synthetic a(Lcom/moji/forum/ui/ForumMainFragment;Z)Z
    .locals 0

    .line 55
    iput-boolean p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->v:Z

    return p1
.end method

.method static synthetic b(Lcom/moji/forum/ui/ForumMainFragment;)Ljava/util/List;
    .locals 0

    .line 55
    iget-object p0, p0, Lcom/moji/forum/ui/ForumMainFragment;->t:Ljava/util/List;

    return-object p0
.end method

.method private b()V
    .locals 4

    .line 103
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->z:Landroid/support/v4/util/ArrayMap;

    const/4 v1, 0x0

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v2, 0x3

    invoke-static {v2, p0}, Lcom/moji/forum/ui/PostListFragment;->a(ILcom/moji/forum/ui/PostListFragment$OnRefreshListener;)Lcom/moji/forum/ui/PostListFragment;

    move-result-object v3

    invoke-virtual {v0, v1, v3}, Landroid/support/v4/util/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 104
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->z:Landroid/support/v4/util/ArrayMap;

    const/4 v1, 0x1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v3, 0x4

    invoke-static {v3, p0}, Lcom/moji/forum/ui/PostListFragment;->a(ILcom/moji/forum/ui/PostListFragment$OnRefreshListener;)Lcom/moji/forum/ui/PostListFragment;

    move-result-object v3

    invoke-virtual {v0, v1, v3}, Landroid/support/v4/util/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 105
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->z:Landroid/support/v4/util/ArrayMap;

    const/4 v1, 0x2

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v3, 0x5

    invoke-static {v3, p0}, Lcom/moji/forum/ui/PostListFragment;->a(ILcom/moji/forum/ui/PostListFragment$OnRefreshListener;)Lcom/moji/forum/ui/PostListFragment;

    move-result-object v3

    invoke-virtual {v0, v1, v3}, Landroid/support/v4/util/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 106
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->z:Landroid/support/v4/util/ArrayMap;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    new-instance v2, Lcom/moji/forum/ui/IslandFragment;

    invoke-direct {v2}, Lcom/moji/forum/ui/IslandFragment;-><init>()V

    invoke-virtual {v0, v1, v2}, Landroid/support/v4/util/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 107
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->k:Lcom/moji/forum/view/PostViewPager;

    iget-object v1, p0, Lcom/moji/forum/ui/ForumMainFragment;->l:Lcom/moji/forum/ui/PostTabPagerAdapter;

    invoke-virtual {v0, v1}, Lcom/moji/forum/view/PostViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    .line 108
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->B:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

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

    .line 109
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->o:Lcom/moji/pulltorefresh/PullToFreshContainer;

    invoke-virtual {v0}, Lcom/moji/pulltorefresh/PullToFreshContainer;->c()V

    return-void
.end method

.method private b(I)V
    .locals 3

    .line 416
    invoke-direct {p0}, Lcom/moji/forum/ui/ForumMainFragment;->f()V

    .line 417
    sget v0, Lcom/moji/forum/R$id;->tab_recommend:I

    const/4 v1, 0x1

    if-ne p1, v0, :cond_0

    .line 418
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->MOTAB_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string v2, "1"

    invoke-virtual {p1, v0, v2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    .line 419
    iget-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->g:Landroid/widget/TextView;

    invoke-virtual {p1, v1}, Landroid/widget/TextView;->setSelected(Z)V

    .line 420
    iget-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->k:Lcom/moji/forum/view/PostViewPager;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Lcom/moji/forum/view/PostViewPager;->setCurrentItem(I)V

    goto :goto_0

    .line 422
    :cond_0
    sget v0, Lcom/moji/forum/R$id;->tab_hot:I

    if-ne p1, v0, :cond_1

    .line 423
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->MOTAB_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string v2, "2"

    invoke-virtual {p1, v0, v2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    .line 424
    iget-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->h:Landroid/widget/TextView;

    invoke-virtual {p1, v1}, Landroid/widget/TextView;->setSelected(Z)V

    .line 425
    iget-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->k:Lcom/moji/forum/view/PostViewPager;

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

    goto :goto_0

    .line 427
    :cond_1
    sget v0, Lcom/moji/forum/R$id;->tab_square:I

    if-ne p1, v0, :cond_2

    .line 428
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->MOTAB_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string v2, "3"

    invoke-virtual {p1, v0, v2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    .line 429
    iget-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->i:Landroid/widget/TextView;

    invoke-virtual {p1, v1}, Landroid/widget/TextView;->setSelected(Z)V

    .line 430
    iget-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->k:Lcom/moji/forum/view/PostViewPager;

    const/4 v0, 0x2

    invoke-virtual {p1, v0}, Lcom/moji/forum/view/PostViewPager;->setCurrentItem(I)V

    goto :goto_0

    .line 432
    :cond_2
    sget v0, Lcom/moji/forum/R$id;->tab_island:I

    if-ne p1, v0, :cond_3

    .line 433
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->MOTAB_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string v2, "4"

    invoke-virtual {p1, v0, v2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    .line 434
    iget-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->j:Landroid/widget/TextView;

    invoke-virtual {p1, v1}, Landroid/widget/TextView;->setSelected(Z)V

    .line 435
    iget-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->k:Lcom/moji/forum/view/PostViewPager;

    const/4 v0, 0x3

    invoke-virtual {p1, v0}, Lcom/moji/forum/view/PostViewPager;->setCurrentItem(I)V

    :cond_3
    :goto_0
    return-void
.end method

.method static synthetic b(Lcom/moji/forum/ui/ForumMainFragment;Z)Z
    .locals 0

    .line 55
    iput-boolean p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->w:Z

    return p1
.end method

.method static synthetic c(Lcom/moji/forum/ui/ForumMainFragment;)Lcom/moji/emotion/CityIndexControlView;
    .locals 0

    .line 55
    iget-object p0, p0, Lcom/moji/forum/ui/ForumMainFragment;->r:Lcom/moji/emotion/CityIndexControlView;

    return-object p0
.end method

.method private c()V
    .locals 2

    .line 113
    new-instance v0, Lcom/moji/http/mqn/HomeInfoRequest;

    invoke-static {}, Lcom/moji/forum/common/ForumUtil;->c()I

    move-result v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/moji/http/mqn/HomeInfoRequest;-><init>(Ljava/lang/String;)V

    new-instance v1, Lcom/moji/forum/ui/ForumMainFragment$1;

    invoke-direct {v1, p0}, Lcom/moji/forum/ui/ForumMainFragment$1;-><init>(Lcom/moji/forum/ui/ForumMainFragment;)V

    .line 114
    invoke-virtual {v0, v1}, Lcom/moji/http/mqn/HomeInfoRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V

    return-void
.end method

.method static synthetic d(Lcom/moji/forum/ui/ForumMainFragment;)Lcom/moji/forum/view/FromCycleSlipPagerAdapter;
    .locals 0

    .line 55
    iget-object p0, p0, Lcom/moji/forum/ui/ForumMainFragment;->s:Lcom/moji/forum/view/FromCycleSlipPagerAdapter;

    return-object p0
.end method

.method private d()V
    .locals 2

    .line 276
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->z:Landroid/support/v4/util/ArrayMap;

    iget-object v1, p0, Lcom/moji/forum/ui/ForumMainFragment;->k:Lcom/moji/forum/view/PostViewPager;

    invoke-virtual {v1}, Lcom/moji/forum/view/PostViewPager;->getCurrentItem()I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/support/v4/util/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/moji/forum/ui/PostListFragment;

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

    return-void
.end method

.method static synthetic e(Lcom/moji/forum/ui/ForumMainFragment;)Lcom/moji/viewpager/CycleSlipViewPager;
    .locals 0

    .line 55
    iget-object p0, p0, Lcom/moji/forum/ui/ForumMainFragment;->q:Lcom/moji/viewpager/CycleSlipViewPager;

    return-object p0
.end method

.method private e()V
    .locals 2

    .line 380
    invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z

    move-result v0

    if-nez v0, :cond_1

    .line 381
    iget-boolean v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->w:Z

    if-eqz v0, :cond_0

    .line 382
    sget v0, Lcom/moji/forum/R$string;->no_network:I

    invoke-static {v0}, Lcom/moji/tool/ToastTool;->a(I)V

    .line 383
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->o:Lcom/moji/pulltorefresh/PullToFreshContainer;

    invoke-virtual {v0}, Lcom/moji/pulltorefresh/PullToFreshContainer;->b()V

    const-string v0, "lijf"

    const-string v1, "mLoadInfoSuccess:  don\'t reload"

    .line 384
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 386
    :cond_0
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->B:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

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

    :goto_0
    return-void

    .line 391
    :cond_1
    iget-boolean v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->w:Z

    if-nez v0, :cond_2

    .line 392
    invoke-direct {p0}, Lcom/moji/forum/ui/ForumMainFragment;->c()V

    .line 394
    :cond_2
    iget-boolean v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->v:Z

    if-nez v0, :cond_3

    const-string v0, "lijf"

    const-string v1, "onContainerRefresh:  loadtopiclist"

    .line 395
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 396
    invoke-direct {p0}, Lcom/moji/forum/ui/ForumMainFragment;->d()V

    :cond_3
    return-void
.end method

.method static synthetic f(Lcom/moji/forum/ui/ForumMainFragment;)Landroid/view/View;
    .locals 0

    .line 55
    iget-object p0, p0, Lcom/moji/forum/ui/ForumMainFragment;->p:Landroid/view/View;

    return-object p0
.end method

.method private f()V
    .locals 2

    .line 441
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->g:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setSelected(Z)V

    .line 442
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setSelected(Z)V

    .line 443
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->i:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setSelected(Z)V

    .line 444
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setSelected(Z)V

    return-void
.end method

.method static synthetic g(Lcom/moji/forum/ui/ForumMainFragment;)Lcom/moji/emotion/CityIndexControlView;
    .locals 0

    .line 55
    iget-object p0, p0, Lcom/moji/forum/ui/ForumMainFragment;->e:Lcom/moji/emotion/CityIndexControlView;

    return-object p0
.end method

.method static synthetic h(Lcom/moji/forum/ui/ForumMainFragment;)Lcom/moji/forum/ui/CoteriePagerAdapter;
    .locals 0

    .line 55
    iget-object p0, p0, Lcom/moji/forum/ui/ForumMainFragment;->f:Lcom/moji/forum/ui/CoteriePagerAdapter;

    return-object p0
.end method

.method static synthetic i(Lcom/moji/forum/ui/ForumMainFragment;)Landroid/widget/LinearLayout;
    .locals 0

    .line 55
    iget-object p0, p0, Lcom/moji/forum/ui/ForumMainFragment;->y:Landroid/widget/LinearLayout;

    return-object p0
.end method

.method static synthetic j(Lcom/moji/forum/ui/ForumMainFragment;)Landroid/support/v4/app/FragmentActivity;
    .locals 0

    .line 55
    iget-object p0, p0, Lcom/moji/forum/ui/ForumMainFragment;->A:Landroid/support/v4/app/FragmentActivity;

    return-object p0
.end method

.method static synthetic k(Lcom/moji/forum/ui/ForumMainFragment;)Lcom/moji/pulltorefresh/PullToFreshContainer;
    .locals 0

    .line 55
    iget-object p0, p0, Lcom/moji/forum/ui/ForumMainFragment;->o:Lcom/moji/pulltorefresh/PullToFreshContainer;

    return-object p0
.end method

.method static synthetic l(Lcom/moji/forum/ui/ForumMainFragment;)V
    .locals 0

    .line 55
    invoke-direct {p0}, Lcom/moji/forum/ui/ForumMainFragment;->e()V

    return-void
.end method


# virtual methods
.method public a()Landroid/graphics/drawable/Drawable;
    .locals 2

    .line 280
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->u:Landroid/graphics/drawable/ColorDrawable;

    if-nez v0, :cond_0

    .line 281
    new-instance v0, Landroid/graphics/drawable/ColorDrawable;

    const v1, -0xd0b08

    invoke-direct {v0, v1}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->u:Landroid/graphics/drawable/ColorDrawable;

    .line 282
    :cond_0
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->u:Landroid/graphics/drawable/ColorDrawable;

    return-object v0
.end method

.method public a(I)V
    .locals 0

    .line 97
    iget-boolean p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->w:Z

    if-eqz p1, :cond_0

    .line 98
    iget-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->o:Lcom/moji/pulltorefresh/PullToFreshContainer;

    invoke-virtual {p1}, Lcom/moji/pulltorefresh/PullToFreshContainer;->b()V

    :cond_0
    return-void
.end method

.method protected a(Landroid/view/View;)V
    .locals 5

    .line 286
    sget v0, Lcom/moji/forum/R$id;->status_layout:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->B:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    .line 287
    sget v0, Lcom/moji/forum/R$id;->topic_banner_header:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->p:Landroid/view/View;

    .line 288
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->p:Landroid/view/View;

    sget v1, Lcom/moji/forum/R$id;->banner_viewpager:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/viewpager/CycleSlipViewPager;

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->q:Lcom/moji/viewpager/CycleSlipViewPager;

    .line 289
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->q:Lcom/moji/viewpager/CycleSlipViewPager;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/moji/viewpager/CycleSlipViewPager;->setDisIntercept(Z)V

    .line 290
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->p:Landroid/view/View;

    sget v2, Lcom/moji/forum/R$id;->topic_banner_index_control:I

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/emotion/CityIndexControlView;

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->r:Lcom/moji/emotion/CityIndexControlView;

    .line 291
    new-instance v0, Lcom/moji/forum/view/FromCycleSlipPagerAdapter;

    iget-object v2, p0, Lcom/moji/forum/ui/ForumMainFragment;->t:Ljava/util/List;

    iget-object v3, p0, Lcom/moji/forum/ui/ForumMainFragment;->q:Lcom/moji/viewpager/CycleSlipViewPager;

    iget-object v4, p0, Lcom/moji/forum/ui/ForumMainFragment;->r:Lcom/moji/emotion/CityIndexControlView;

    invoke-direct {v0, v2, v3, v4}, Lcom/moji/forum/view/FromCycleSlipPagerAdapter;-><init>(Ljava/util/List;Lcom/moji/viewpager/CycleSlipViewPager;Lcom/moji/emotion/CityIndexControlView;)V

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->s:Lcom/moji/forum/view/FromCycleSlipPagerAdapter;

    .line 292
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->q:Lcom/moji/viewpager/CycleSlipViewPager;

    iget-object v2, p0, Lcom/moji/forum/ui/ForumMainFragment;->s:Lcom/moji/forum/view/FromCycleSlipPagerAdapter;

    invoke-virtual {v0, v2}, Lcom/moji/viewpager/CycleSlipViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    .line 294
    sget v0, Lcom/moji/forum/R$id;->coterie_viewpager:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/support/v4/view/ViewPager;

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->d:Landroid/support/v4/view/ViewPager;

    .line 295
    sget v0, Lcom/moji/forum/R$id;->index_control:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/emotion/CityIndexControlView;

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->e:Lcom/moji/emotion/CityIndexControlView;

    .line 296
    new-instance v0, Lcom/moji/forum/ui/CoteriePagerAdapter;

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

    move-result-object v2

    invoke-direct {v0, v2}, Lcom/moji/forum/ui/CoteriePagerAdapter;-><init>(Landroid/app/Activity;)V

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->f:Lcom/moji/forum/ui/CoteriePagerAdapter;

    .line 297
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->d:Landroid/support/v4/view/ViewPager;

    iget-object v2, p0, Lcom/moji/forum/ui/ForumMainFragment;->f:Lcom/moji/forum/ui/CoteriePagerAdapter;

    invoke-virtual {v0, v2}, Landroid/support/v4/view/ViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    .line 298
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->e:Lcom/moji/emotion/CityIndexControlView;

    sget v2, Lcom/moji/forum/R$drawable;->coterie_normal:I

    sget v3, Lcom/moji/forum/R$drawable;->coterie_selected:I

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

    .line 300
    sget v0, Lcom/moji/forum/R$id;->header_empty_tabloid:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->x:Landroid/widget/LinearLayout;

    .line 301
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->x:Landroid/widget/LinearLayout;

    sget v2, Lcom/moji/forum/R$id;->ll_tabloid_content:I

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->y:Landroid/widget/LinearLayout;

    .line 302
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->y:Landroid/widget/LinearLayout;

    const/16 v2, 0x8

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

    .line 303
    sget v0, Lcom/moji/forum/R$id;->pulltofresh:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/pulltorefresh/PullToFreshContainer;

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->o:Lcom/moji/pulltorefresh/PullToFreshContainer;

    .line 305
    sget v0, Lcom/moji/forum/R$id;->tab_recommend:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->g:Landroid/widget/TextView;

    .line 306
    sget v0, Lcom/moji/forum/R$id;->tab_hot:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->h:Landroid/widget/TextView;

    .line 307
    sget v0, Lcom/moji/forum/R$id;->tab_square:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->i:Landroid/widget/TextView;

    .line 308
    sget v0, Lcom/moji/forum/R$id;->tab_island:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->j:Landroid/widget/TextView;

    .line 309
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->g:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 310
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->h:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 311
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->i:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 312
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->j:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 313
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->g:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setSelected(Z)V

    .line 315
    sget v0, Lcom/moji/forum/R$id;->viewpager:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/forum/view/PostViewPager;

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->k:Lcom/moji/forum/view/PostViewPager;

    .line 316
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->k:Lcom/moji/forum/view/PostViewPager;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Lcom/moji/forum/view/PostViewPager;->setOffscreenPageLimit(I)V

    .line 317
    new-instance v0, Lcom/moji/forum/ui/PostTabPagerAdapter;

    invoke-virtual {p0}, Lcom/moji/forum/ui/ForumMainFragment;->getChildFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/forum/ui/ForumMainFragment;->z:Landroid/support/v4/util/ArrayMap;

    invoke-direct {v0, v1, v2}, Lcom/moji/forum/ui/PostTabPagerAdapter;-><init>(Landroid/support/v4/app/FragmentManager;Landroid/support/v4/util/ArrayMap;)V

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->l:Lcom/moji/forum/ui/PostTabPagerAdapter;

    .line 318
    sget v0, Lcom/moji/forum/R$id;->header:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->m:Landroid/view/View;

    .line 319
    sget v0, Lcom/moji/forum/R$id;->scroll_view:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/moji/forum/view/ForumScrollView;

    iput-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->n:Lcom/moji/forum/view/ForumScrollView;

    .line 320
    iget-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->n:Lcom/moji/forum/view/ForumScrollView;

    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->m:Landroid/view/View;

    invoke-virtual {p1, v0}, Lcom/moji/forum/view/ForumScrollView;->setHeader(Landroid/view/View;)V

    .line 321
    iget-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->n:Lcom/moji/forum/view/ForumScrollView;

    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->k:Lcom/moji/forum/view/PostViewPager;

    iget-object v1, p0, Lcom/moji/forum/ui/ForumMainFragment;->z:Landroid/support/v4/util/ArrayMap;

    invoke-virtual {p1, v0, v1}, Lcom/moji/forum/view/ForumScrollView;->a(Landroid/support/v4/view/ViewPager;Landroid/support/v4/util/ArrayMap;)V

    .line 323
    iget-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->o:Lcom/moji/pulltorefresh/PullToFreshContainer;

    new-instance v0, Lcom/moji/forum/ui/ForumMainFragment$4;

    invoke-direct {v0, p0}, Lcom/moji/forum/ui/ForumMainFragment$4;-><init>(Lcom/moji/forum/ui/ForumMainFragment;)V

    invoke-virtual {p1, v0}, Lcom/moji/pulltorefresh/PullToFreshContainer;->setOnRefreshListener(Lcom/moji/pulltorefresh/PullRefresher$OnContainerRefreshListener;)V

    .line 333
    iget-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->d:Landroid/support/v4/view/ViewPager;

    new-instance v0, Lcom/moji/forum/ui/ForumMainFragment$5;

    invoke-direct {v0, p0}, Lcom/moji/forum/ui/ForumMainFragment$5;-><init>(Lcom/moji/forum/ui/ForumMainFragment;)V

    invoke-virtual {p1, v0}, Landroid/support/v4/view/ViewPager;->addOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    .line 370
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->MOTAB_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string v1, "1"

    invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    .line 371
    iget-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->B:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    new-instance v0, Lcom/moji/forum/ui/ForumMainFragment$6;

    invoke-direct {v0, p0}, Lcom/moji/forum/ui/ForumMainFragment$6;-><init>(Lcom/moji/forum/ui/ForumMainFragment;)V

    invoke-virtual {p1, v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->setOnRetryClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    .line 403
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    .line 404
    sget v1, Lcom/moji/forum/R$id;->tab_recommend:I

    if-eq v0, v1, :cond_1

    sget v1, Lcom/moji/forum/R$id;->tab_hot:I

    if-eq v0, v1, :cond_1

    sget v1, Lcom/moji/forum/R$id;->tab_square:I

    if-eq v0, v1, :cond_1

    sget v1, Lcom/moji/forum/R$id;->tab_island:I

    if-ne v0, v1, :cond_0

    goto :goto_0

    .line 406
    :cond_0
    sget v1, Lcom/moji/forum/R$id;->ll_tabloid:I

    if-ne v0, v1, :cond_2

    .line 407
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->NEWS_CLICK:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    .line 408
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/moji/forum/ui/ForumMainFragment;->A:Landroid/support/v4/app/FragmentActivity;

    const-class v2, Lcom/moji/forum/ui/TopicActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "topic_id"

    .line 409
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object p1

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p1, ""

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string p1, "can_not_delete"

    const/4 v1, 0x1

    .line 410
    invoke-virtual {v0, p1, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 411
    invoke-virtual {p0, v0}, Lcom/moji/forum/ui/ForumMainFragment;->startActivity(Landroid/content/Intent;)V

    goto :goto_1

    .line 405
    :cond_1
    :goto_0
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    invoke-direct {p0, p1}, Lcom/moji/forum/ui/ForumMainFragment;->b(I)V

    :cond_2
    :goto_1
    return-void
.end method

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

    .line 88
    invoke-virtual {p0}, Lcom/moji/forum/ui/ForumMainFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/forum/ui/ForumMainFragment;->A:Landroid/support/v4/app/FragmentActivity;

    .line 89
    invoke-virtual {p0}, Lcom/moji/forum/ui/ForumMainFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object p1

    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    sget p2, Lcom/moji/forum/R$layout;->fragment_forum_main:I

    const/4 p3, 0x0

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

    move-result-object p1

    .line 90
    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/ForumMainFragment;->a(Landroid/view/View;)V

    .line 91
    invoke-direct {p0}, Lcom/moji/forum/ui/ForumMainFragment;->b()V

    return-object p1
.end method

.method public onDestroy()V
    .locals 1

    .line 449
    invoke-super {p0}, Lcom/moji/base/MJFragment;->onDestroy()V

    const/4 v0, 0x1

    .line 450
    iput-boolean v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->c:Z

    .line 451
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->s:Lcom/moji/forum/view/FromCycleSlipPagerAdapter;

    if-eqz v0, :cond_0

    .line 452
    iget-object v0, p0, Lcom/moji/forum/ui/ForumMainFragment;->s:Lcom/moji/forum/view/FromCycleSlipPagerAdapter;

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

    :cond_0
    return-void
.end method
