273 lines
7.0 KiB
Smali
273 lines
7.0 KiB
Smali
.class public Lcom/moji/user/message/fragment/MsgFeedFragment;
|
|
.super Lcom/moji/user/message/fragment/BaseMsgFragment;
|
|
.source "MsgFeedFragment.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/user/message/IMsgDetailCallBack;
|
|
.implements Lcom/moji/user/message/presenter/MsgFeedPresenter$FeedMsgCallBack;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/user/message/fragment/BaseMsgFragment<",
|
|
"Lcom/moji/user/message/presenter/MsgFeedPresenter;",
|
|
">;",
|
|
"Lcom/moji/user/message/IMsgDetailCallBack<",
|
|
"Lcom/moji/http/message/bean/FeedMsgResp$FeedMsg;",
|
|
">;",
|
|
"Lcom/moji/user/message/presenter/MsgFeedPresenter$FeedMsgCallBack;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 23
|
|
invoke-direct {p0}, Lcom/moji/user/message/fragment/BaseMsgFragment;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(ILcom/moji/http/message/bean/FeedMsgResp$FeedMsg;)V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 82
|
|
invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgFeedFragment;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
iget-wide v1, p2, Lcom/moji/http/message/bean/FeedMsgResp$FeedMsg;->from_sns_id:J
|
|
|
|
invoke-virtual {p1, v0, v1, v2}, Lcom/moji/account/data/AccountProvider;->a(Landroid/content/Context;J)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 84
|
|
:cond_0
|
|
new-instance p1, Landroid/content/Intent;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgFeedFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v0
|
|
|
|
const-class v1, Lcom/moji/mjweather/feed/ZakerDetailsActivity;
|
|
|
|
invoke-direct {p1, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
const-string v0, "feeddetail_feed_id"
|
|
|
|
.line 85
|
|
iget-wide v1, p2, Lcom/moji/http/message/bean/FeedMsgResp$FeedMsg;->feed_id:J
|
|
|
|
invoke-virtual {p1, v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
.line 86
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/message/fragment/MsgFeedFragment;->startActivity(Landroid/content/Intent;)V
|
|
|
|
.line 87
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object p2, Lcom/moji/statistics/EVENT_TAG;->ME_NEWS_INFORMATION_DETAIL_CLICK:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {p1, p2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic a(ILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 23
|
|
check-cast p2, Lcom/moji/http/message/bean/FeedMsgResp$FeedMsg;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/user/message/fragment/MsgFeedFragment;->a(ILcom/moji/http/message/bean/FeedMsgResp$FeedMsg;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/newliveview/dynamic/base/BaseCell;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/util/ArrayList;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/message/bean/FeedMsgResp$FeedMsg;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 52
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 55
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgFeedFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->d()V
|
|
|
|
.line 56
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/moji/http/message/bean/FeedMsgResp$FeedMsg;
|
|
|
|
.line 57
|
|
new-instance v2, Lcom/moji/user/message/cell/MsgFeedCell;
|
|
|
|
invoke-direct {v2, v1, p0}, Lcom/moji/user/message/cell/MsgFeedCell;-><init>(Lcom/moji/http/message/bean/FeedMsgResp$FeedMsg;Lcom/moji/user/message/IMsgDetailCallBack;)V
|
|
|
|
.line 58
|
|
iget-object v1, p0, Lcom/moji/user/message/fragment/MsgFeedFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a(Lcom/moji/newliveview/dynamic/base/Cell;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 60
|
|
:cond_1
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result p1
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
:goto_1
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/message/fragment/MsgFeedFragment;->a(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(ZZ)V
|
|
.locals 1
|
|
|
|
.line 65
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgFeedFragment;->c:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b()V
|
|
|
|
.line 66
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/user/message/fragment/MsgFeedFragment;->a(ZZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected c(Z)V
|
|
.locals 1
|
|
|
|
.line 32
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgFeedFragment;->d:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/user/message/presenter/MsgFeedPresenter;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/user/message/presenter/MsgFeedPresenter;->a(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d(Z)V
|
|
.locals 0
|
|
|
|
.line 71
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/message/fragment/MsgFeedFragment;->b(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected j()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected synthetic l()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 23
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgFeedFragment;->o()Lcom/moji/user/message/presenter/MsgFeedPresenter;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected m()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected n()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 47
|
|
sget v0, Lcom/moji/user/R$string;->msg_feed:I
|
|
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected o()Lcom/moji/user/message/presenter/MsgFeedPresenter;
|
|
.locals 1
|
|
|
|
.line 27
|
|
new-instance v0, Lcom/moji/user/message/presenter/MsgFeedPresenter;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/user/message/presenter/MsgFeedPresenter;-><init>(Lcom/moji/user/message/presenter/MsgFeedPresenter$FeedMsgCallBack;)V
|
|
|
|
return-object v0
|
|
.end method
|