432 lines
12 KiB
Smali
432 lines
12 KiB
Smali
.class public Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;
|
|
.super Lcom/moji/user/message/fragment/BaseMsgFragment;
|
|
.source "MsgLiveViewPraiseFragment.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/user/message/IMsgDetailCallBack;
|
|
.implements Lcom/moji/user/message/presenter/MsgBasePresenter$NewMessageCallBack;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/user/message/fragment/BaseMsgFragment<",
|
|
"Lcom/moji/user/message/presenter/MsgPraisePresenter;",
|
|
">;",
|
|
"Lcom/moji/user/message/IMsgDetailCallBack<",
|
|
"Lcom/moji/http/message/bean/PraiseMsgResp$PraiseMsg;",
|
|
">;",
|
|
"Lcom/moji/user/message/presenter/MsgBasePresenter$NewMessageCallBack;"
|
|
}
|
|
.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/PraiseMsgResp$PraiseMsg;)V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 49
|
|
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/MsgLiveViewPraiseFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v0
|
|
|
|
iget-wide v1, p2, Lcom/moji/http/message/bean/PraiseMsgResp$PraiseMsg;->sns_id:J
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, v0, p2}, Lcom/moji/account/data/AccountProvider;->a(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
.line 52
|
|
:cond_0
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v1, Lcom/moji/statistics/EVENT_TAG;->ME_NEWS_TIMELINE_DETAIL_PRAISE_CLICK:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {p1, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
.line 54
|
|
iget p1, p2, Lcom/moji/http/message/bean/PraiseMsgResp$PraiseMsg;->type:I
|
|
|
|
if-ne p1, v0, :cond_1
|
|
|
|
.line 55
|
|
new-instance p1, Landroid/content/Intent;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v0
|
|
|
|
const-class v1, Lcom/moji/newliveview/detail/PictureDetailActivity;
|
|
|
|
invoke-direct {p1, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
const-string v0, "extra_data_picture_id"
|
|
|
|
.line 56
|
|
iget-wide v1, p2, Lcom/moji/http/message/bean/PraiseMsgResp$PraiseMsg;->target_id:J
|
|
|
|
invoke-virtual {p1, v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
goto :goto_0
|
|
|
|
.line 58
|
|
:cond_1
|
|
new-instance p1, Landroid/content/Intent;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v0
|
|
|
|
const-class v1, Lcom/moji/newliveview/dynamic/DynamicCommentActivity;
|
|
|
|
invoke-direct {p1, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
const-string v0, "dynamic_id"
|
|
|
|
.line 59
|
|
iget-wide v1, p2, Lcom/moji/http/message/bean/PraiseMsgResp$PraiseMsg;->target_id:J
|
|
|
|
invoke-virtual {p1, v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
.line 61
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/app/FragmentActivity;->startActivity(Landroid/content/Intent;)V
|
|
|
|
.line 62
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
sget v0, Lcom/moji/base/R$anim;->activity_open_right_in:I
|
|
|
|
sget v1, Lcom/moji/base/R$anim;->activity_open_right_out:I
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/support/v4/app/FragmentActivity;->overridePendingTransition(II)V
|
|
|
|
const/4 p1, 0x2
|
|
|
|
.line 65
|
|
iput p1, p2, Lcom/moji/http/message/bean/PraiseMsgResp$PraiseMsg;->is_read:I
|
|
|
|
.line 66
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->c()V
|
|
|
|
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/PraiseMsgResp$PraiseMsg;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->a(ILcom/moji/http/message/bean/PraiseMsgResp$PraiseMsg;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/newliveview/dynamic/base/BaseCell;)V
|
|
.locals 0
|
|
|
|
.line 43
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->b(Lcom/moji/newliveview/dynamic/base/BaseCell;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/util/ArrayList;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/newliveview/dynamic/base/Cell;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 71
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->d()V
|
|
|
|
.line 72
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->e:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a(Ljava/util/ArrayList;)V
|
|
|
|
.line 73
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result p1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->a(Z)V
|
|
|
|
.line 74
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->p()Lcom/moji/user/message/fragment/MsgLiveViewFragment;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->g()Z
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1, v1}, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->a(Z)V
|
|
|
|
.line 75
|
|
iput-boolean v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->j:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(ZLcom/moji/newliveview/dynamic/base/Cell;)V
|
|
.locals 0
|
|
|
|
.line 93
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->a(ZLcom/moji/newliveview/dynamic/base/Cell;)V
|
|
|
|
.line 94
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->p()Lcom/moji/user/message/fragment/MsgLiveViewFragment;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->g()Z
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1, p2}, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->a(Z)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 95
|
|
iput-boolean p1, p0, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->j:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(ZZ)V
|
|
.locals 1
|
|
|
|
.line 80
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->c:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b()V
|
|
|
|
.line 81
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->a(ZZ)V
|
|
|
|
.line 82
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->p()Lcom/moji/user/message/fragment/MsgLiveViewFragment;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->g()Z
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1, p2}, Lcom/moji/user/message/fragment/MsgLiveViewFragment;->a(Z)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 83
|
|
iput-boolean p1, p0, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->j:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected c(Lcom/moji/newliveview/dynamic/base/BaseCell;)V
|
|
.locals 4
|
|
|
|
.line 37
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/statistics/EVENT_TAG;->ME_NEWS_TIMELINE_DETAIL_PRAISE_DELETE:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
.line 38
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->d:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/user/message/presenter/MsgPraisePresenter;
|
|
|
|
move-object v1, p1
|
|
|
|
check-cast v1, Lcom/moji/user/message/cell/PraiseMsgCell;
|
|
|
|
invoke-virtual {v1}, Lcom/moji/user/message/cell/PraiseMsgCell;->f()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/moji/http/message/bean/PraiseMsgResp$PraiseMsg;
|
|
|
|
iget-wide v1, v1, Lcom/moji/http/message/bean/PraiseMsgResp$PraiseMsg;->id:J
|
|
|
|
const/4 v3, 0x2
|
|
|
|
invoke-virtual {v0, v3, p1, v1, v2}, Lcom/moji/user/message/presenter/MsgPraisePresenter;->a(ILcom/moji/newliveview/dynamic/base/Cell;J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected c(Z)V
|
|
.locals 1
|
|
|
|
.line 32
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->d:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/user/message/presenter/MsgPraisePresenter;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/user/message/presenter/MsgPraisePresenter;->a(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d(Z)V
|
|
.locals 0
|
|
|
|
.line 88
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->b(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected i()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected k()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected synthetic l()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 23
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->o()Lcom/moji/user/message/presenter/MsgPraisePresenter;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public m()V
|
|
.locals 5
|
|
|
|
.line 100
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/statistics/EVENT_TAG;->ME_NEWS_TIMELINE_DETAIL_PRAISE_CLEAR:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
.line 101
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->g()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 102
|
|
iget-object v0, p0, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->d:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/user/message/presenter/MsgPraisePresenter;
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2, v3, v4}, Lcom/moji/user/message/presenter/MsgPraisePresenter;->a(ILcom/moji/newliveview/dynamic/base/Cell;J)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected n()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const-string v0, ""
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected o()Lcom/moji/user/message/presenter/MsgPraisePresenter;
|
|
.locals 1
|
|
|
|
.line 27
|
|
new-instance v0, Lcom/moji/user/message/presenter/MsgPraisePresenter;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/user/message/presenter/MsgPraisePresenter;-><init>(Lcom/moji/user/message/presenter/MsgBasePresenter$NewMessageCallBack;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public p()Lcom/moji/user/message/fragment/MsgLiveViewFragment;
|
|
.locals 1
|
|
|
|
.line 122
|
|
invoke-virtual {p0}, Lcom/moji/user/message/fragment/MsgLiveViewPraiseFragment;->getParentFragment()Landroid/support/v4/app/Fragment;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/user/message/fragment/MsgLiveViewFragment;
|
|
|
|
return-object v0
|
|
.end method
|