309 lines
8.9 KiB
Smali
309 lines
8.9 KiB
Smali
.class public Lcom/moji/mjweather/feed/ChannelRommendFragment;
|
|
.super Lcom/moji/mjweather/feed/ChannelBaseFragment;
|
|
.source "ChannelRommendFragment.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 28
|
|
invoke-direct {p0}, Lcom/moji/mjweather/feed/ChannelBaseFragment;-><init>()V
|
|
|
|
.line 29
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/feed/ChannelRommendFragment;->getArguments()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v1, "ad_position"
|
|
|
|
.line 30
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const-string v1, "ad_position"
|
|
|
|
.line 31
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method b()V
|
|
.locals 11
|
|
|
|
.line 38
|
|
iget-object v0, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->b:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
new-instance v1, Landroid/support/v7/widget/LinearLayoutManager;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/feed/ChannelRommendFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Landroid/support/v7/widget/LinearLayoutManager;-><init>(Landroid/content/Context;IZ)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V
|
|
|
|
.line 39
|
|
new-instance v0, Lcom/moji/mjweather/feed/adapter/ChannelCommendFragmentListAdapter;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/feed/ChannelRommendFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v6
|
|
|
|
iget-object v7, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->d:Ljava/util/ArrayList;
|
|
|
|
iget-object v8, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->e:Ljava/util/ArrayList;
|
|
|
|
iget-object v9, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->f:Ljava/util/ArrayList;
|
|
|
|
iget v10, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->p:I
|
|
|
|
move-object v5, v0
|
|
|
|
invoke-direct/range {v5 .. v10}, Lcom/moji/mjweather/feed/adapter/ChannelCommendFragmentListAdapter;-><init>(Landroid/content/Context;Ljava/util/List;Ljava/util/List;Ljava/util/List;I)V
|
|
|
|
iput-object v0, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->c:Lcom/moji/mjweather/feed/adapter/BaseZakerListAdapter;
|
|
|
|
.line 40
|
|
iget-object v0, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->b:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
iget-object v1, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->c:Lcom/moji/mjweather/feed/adapter/BaseZakerListAdapter;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V
|
|
|
|
.line 41
|
|
iget-object v0, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->c:Lcom/moji/mjweather/feed/adapter/BaseZakerListAdapter;
|
|
|
|
check-cast v0, Lcom/moji/mjweather/feed/adapter/ChannelCommendFragmentListAdapter;
|
|
|
|
new-instance v1, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;-><init>(Lcom/moji/mjweather/feed/ChannelRommendFragment;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/mjweather/feed/adapter/ChannelCommendFragmentListAdapter;->a(Lcom/moji/mjweather/feed/adapter/ChannelCommendFragmentListAdapter$OnItemClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected b(I)V
|
|
.locals 5
|
|
|
|
const/16 v0, 0x66
|
|
|
|
const/16 v1, 0x65
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
goto/16 :goto_4
|
|
|
|
.line 132
|
|
:pswitch_0
|
|
iget-object p1, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->f:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result p1
|
|
|
|
const/16 v2, 0x8
|
|
|
|
if-lt p1, v2, :cond_2
|
|
|
|
.line 133
|
|
iget-object p1, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->g:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/moji/mjweather/feed/data/ZakerFeed;
|
|
|
|
.line 134
|
|
iput v1, v3, Lcom/moji/mjweather/feed/data/ZakerFeed;->show_type:I
|
|
|
|
.line 135
|
|
iget-object v4, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->f:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v4, v2, v3}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 137
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->i:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_1
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/moji/mjweather/feed/data/ZakerFeed;
|
|
|
|
.line 138
|
|
iput v0, v1, Lcom/moji/mjweather/feed/data/ZakerFeed;->show_type:I
|
|
|
|
.line 139
|
|
iget-object v3, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->f:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v3, v2, v1}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 120
|
|
:pswitch_1
|
|
iget-object p1, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->g:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_2
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/mjweather/feed/data/ZakerFeed;
|
|
|
|
.line 121
|
|
iput v1, v2, Lcom/moji/mjweather/feed/data/ZakerFeed;->show_type:I
|
|
|
|
.line 122
|
|
iget-object v3, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->f:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_2
|
|
|
|
.line 124
|
|
:cond_1
|
|
iget-object p1, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->i:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_3
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/moji/mjweather/feed/data/ZakerFeed;
|
|
|
|
.line 125
|
|
iput v0, v1, Lcom/moji/mjweather/feed/data/ZakerFeed;->show_type:I
|
|
|
|
.line 126
|
|
iget-object v2, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->f:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_3
|
|
|
|
.line 146
|
|
:cond_2
|
|
:goto_4
|
|
iget-object p1, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->g:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->clear()V
|
|
|
|
.line 147
|
|
iget-object p1, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->i:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->clear()V
|
|
|
|
return-void
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_0
|
|
:pswitch_0
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method c()V
|
|
.locals 1
|
|
|
|
.line 152
|
|
iget-object v0, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->c:Lcom/moji/mjweather/feed/adapter/BaseZakerListAdapter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/feed/adapter/BaseZakerListAdapter;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method c(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
.line 157
|
|
iget-object v0, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->c:Lcom/moji/mjweather/feed/adapter/BaseZakerListAdapter;
|
|
|
|
check-cast v0, Lcom/moji/mjweather/feed/adapter/ChannelCommendFragmentListAdapter;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/mjweather/feed/adapter/ChannelCommendFragmentListAdapter;->a(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public updateCommentCount(Lcom/moji/mjweather/feed/event/UpdateCommentCountEvent;)V
|
|
.locals 0
|
|
|
|
.line 162
|
|
invoke-super {p0, p1}, Lcom/moji/mjweather/feed/ChannelBaseFragment;->updateCommentCount(Lcom/moji/mjweather/feed/event/UpdateCommentCountEvent;)V
|
|
|
|
.line 163
|
|
iget-object p1, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->c:Lcom/moji/mjweather/feed/adapter/BaseZakerListAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/mjweather/feed/adapter/BaseZakerListAdapter;->c()V
|
|
|
|
return-void
|
|
.end method
|