847 lines
23 KiB
Smali
847 lines
23 KiB
Smali
.class public Lcom/moji/user/homepage/fragment/UserDynamicFragment;
|
|
.super Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;
|
|
.source "UserDynamicFragment.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;
|
|
.implements Lcom/moji/newliveview/dynamic/presenter/DynamicPresenter$DynamicViewCallBack;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/user/homepage/fragment/UserCenterBaseFragment<",
|
|
"Lcom/moji/user/homepage/presenter/UserDynamicPresenter;",
|
|
">;",
|
|
"Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;",
|
|
"Lcom/moji/newliveview/dynamic/presenter/DynamicPresenter$DynamicViewCallBack;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private e:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/PictureDynamic;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 41
|
|
invoke-direct {p0}, Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;-><init>()V
|
|
|
|
.line 43
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->e:Ljava/util/ArrayList;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static b(J)Lcom/moji/user/homepage/fragment/UserDynamicFragment;
|
|
.locals 3
|
|
|
|
.line 45
|
|
new-instance v0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;
|
|
|
|
invoke-direct {v0}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;-><init>()V
|
|
|
|
.line 46
|
|
new-instance v1, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string v2, "user_sns_id"
|
|
|
|
.line 47
|
|
invoke-virtual {v1, v2, p0, p1}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V
|
|
|
|
.line 48
|
|
invoke-virtual {v0, v1}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->setArguments(Landroid/os/Bundle;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(J)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(JJ)V
|
|
.locals 5
|
|
|
|
.line 123
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->e:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
.line 124
|
|
iget-wide v2, v1, Lcom/moji/http/snsforum/entity/PictureDynamic;->dynamic_id:J
|
|
|
|
cmp-long v4, p1, v2
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
iget-object v2, v1, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_list:Ljava/util/ArrayList;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 125
|
|
iget-object p1, v1, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_list:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
.line 126
|
|
:cond_1
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
.line 127
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/moji/http/snsforum/entity/DynamicComment;
|
|
|
|
.line 128
|
|
iget-wide v2, p2, Lcom/moji/http/snsforum/entity/DynamicComment;->id:J
|
|
|
|
cmp-long p2, v2, p3
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
.line 129
|
|
invoke-interface {p1}, Ljava/util/Iterator;->remove()V
|
|
|
|
.line 130
|
|
iget p2, v1, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_count:I
|
|
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
iput p2, v1, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_count:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const-wide/16 p1, -0x1
|
|
|
|
cmp-long v0, p3, p1
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
.line 134
|
|
iget p1, v1, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_count:I
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
iput p1, v1, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_count:I
|
|
|
|
.line 139
|
|
:cond_3
|
|
iget-object p1, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(JLcom/moji/http/snsforum/entity/DynamicComment;)V
|
|
.locals 4
|
|
|
|
.line 144
|
|
iget-object p3, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->e:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p3
|
|
|
|
:cond_0
|
|
invoke-interface {p3}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-interface {p3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
.line 145
|
|
iget-wide v1, v0, Lcom/moji/http/snsforum/entity/PictureDynamic;->dynamic_id:J
|
|
|
|
cmp-long v3, p1, v1
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
.line 152
|
|
iget p1, v0, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_count:I
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
iput p1, v0, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_count:I
|
|
|
|
.line 156
|
|
:cond_1
|
|
iget-object p1, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/content/Intent;)V
|
|
.locals 2
|
|
|
|
.line 208
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->startActivity(Landroid/content/Intent;)V
|
|
|
|
.line 209
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_HOMEPAGE_PIC_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;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/view/View;Lcom/moji/http/snsforum/entity/DynamicComment;)V
|
|
.locals 3
|
|
|
|
.line 182
|
|
invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
.line 183
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v1
|
|
|
|
const-class v2, Lcom/moji/newliveview/dynamic/DynamicCommentActivity;
|
|
|
|
invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
const-string v1, "dynamic"
|
|
|
|
.line 184
|
|
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
|
|
|
|
const-string p1, "comment_id"
|
|
|
|
.line 185
|
|
invoke-virtual {p2}, Lcom/moji/http/snsforum/entity/DynamicComment;->getCommentId()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-virtual {v0, p1, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
.line 186
|
|
invoke-virtual {p0, v0}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->a(Landroid/content/Intent;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/newliveview/dynamic/DynamicCell;)V
|
|
.locals 5
|
|
|
|
.line 191
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/DynamicCell;->f()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v0, v0, Lcom/moji/http/snsforum/entity/PictureDynamic;->dynamic_id:J
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 194
|
|
:cond_0
|
|
invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/moji/account/data/AccountProvider;->f()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 195
|
|
invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/account/data/AccountProvider;->b(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
|
|
.line 198
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->l:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/user/homepage/presenter/UserDynamicPresenter;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/user/homepage/presenter/UserDynamicPresenter;->a(Lcom/moji/newliveview/dynamic/DynamicCell;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/util/ArrayList;Z)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/PictureDynamic;",
|
|
">;Z)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 84
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
.line 87
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->d()V
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 89
|
|
iget-object p2, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->e:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p2}, Ljava/util/ArrayList;->clear()V
|
|
|
|
.line 91
|
|
:cond_1
|
|
iget-object p2, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->e:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p2, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
|
|
|
|
.line 92
|
|
iget-object p1, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->e: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 p2
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 93
|
|
iput-object v0, p2, Lcom/moji/http/snsforum/entity/PictureDynamic;->comment_list:Ljava/util/ArrayList;
|
|
|
|
.line 94
|
|
new-instance v0, Lcom/moji/newliveview/dynamic/DynamicCell;
|
|
|
|
const/4 v1, 0x3
|
|
|
|
invoke-direct {v0, p2, p0, v1}, Lcom/moji/newliveview/dynamic/DynamicCell;-><init>(Lcom/moji/http/snsforum/entity/PictureDynamic;Lcom/moji/newliveview/dynamic/DynamicCell$CellClickCallBack;I)V
|
|
|
|
.line 95
|
|
iget-object p2, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p2, v0}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a(Lcom/moji/newliveview/dynamic/base/Cell;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 97
|
|
:cond_2
|
|
iget-object p1, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->e:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result p1
|
|
|
|
if-lez p1, :cond_3
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const/4 p1, 0x0
|
|
|
|
:goto_1
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->c(Z)V
|
|
|
|
return-void
|
|
|
|
:cond_4
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 1
|
|
|
|
.line 71
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->l:Ljava/lang/Object;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 74
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->l:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/moji/user/homepage/presenter/UserDynamicPresenter;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/user/homepage/presenter/UserDynamicPresenter;->a(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(ZZ)V
|
|
.locals 6
|
|
|
|
.line 166
|
|
sget v3, Lcom/moji/user/R$drawable;->view_icon_empty_no_moment:I
|
|
|
|
sget v0, Lcom/moji/user/R$string;->regrettably:I
|
|
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
sget v0, Lcom/moji/user/R$string;->no_publish_dynamic:I
|
|
|
|
.line 167
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
move-object v0, p0
|
|
|
|
move v1, p1
|
|
|
|
move v2, p2
|
|
|
|
.line 166
|
|
invoke-virtual/range {v0 .. v5}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->a(ZZILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a_(Lcom/moji/newliveview/dynamic/DynamicCell;)V
|
|
.locals 4
|
|
|
|
.line 102
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/credit/CreditTaskType;->DAILY_PRAISE:Lcom/moji/credit/CreditTaskType;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {v0, v1, v2, v3}, Lcom/moji/credit/CreditTaskHelper;->a(Landroid/content/Context;Lcom/moji/credit/CreditTaskType;Lcom/moji/tool/ToastTool$AddViewListener;Z)V
|
|
|
|
.line 104
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/DynamicCell;->f()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
.line 105
|
|
iget-boolean v1, v0, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_praised:Z
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 106
|
|
iput-boolean v1, v0, Lcom/moji/http/snsforum/entity/PictureDynamic;->is_praised:Z
|
|
|
|
.line 107
|
|
iget v2, v0, Lcom/moji/http/snsforum/entity/PictureDynamic;->praise_number:I
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
iput v2, v0, Lcom/moji/http/snsforum/entity/PictureDynamic;->praise_number:I
|
|
|
|
.line 108
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/DynamicCell;->d()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a_(Z)V
|
|
.locals 0
|
|
|
|
.line 172
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->d(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public addCommentEvent(Lcom/moji/newliveview/dynamic/EventDynamicComment;)V
|
|
.locals 4
|
|
.annotation runtime Lorg/greenrobot/eventbus/Subscribe;
|
|
a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
|
|
.end annotation
|
|
|
|
.line 230
|
|
iget-boolean v0, p1, Lcom/moji/newliveview/dynamic/EventDynamicComment;->a:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 231
|
|
iget-boolean v0, p1, Lcom/moji/newliveview/dynamic/EventDynamicComment;->c:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 232
|
|
iget-object p1, p1, Lcom/moji/newliveview/dynamic/EventDynamicComment;->b:Lcom/moji/http/snsforum/entity/DynamicComment;
|
|
|
|
iget-wide v0, p1, Lcom/moji/http/snsforum/entity/DynamicComment;->dynamic_id:J
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-virtual {p0, v0, v1, p1}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->a(JLcom/moji/http/snsforum/entity/DynamicComment;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 234
|
|
:cond_0
|
|
iget-object v0, p1, Lcom/moji/newliveview/dynamic/EventDynamicComment;->b:Lcom/moji/http/snsforum/entity/DynamicComment;
|
|
|
|
iget-wide v0, v0, Lcom/moji/http/snsforum/entity/DynamicComment;->dynamic_id:J
|
|
|
|
iget-object p1, p1, Lcom/moji/newliveview/dynamic/EventDynamicComment;->b:Lcom/moji/http/snsforum/entity/DynamicComment;
|
|
|
|
invoke-virtual {p0, v0, v1, p1}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->a(JLcom/moji/http/snsforum/entity/DynamicComment;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 237
|
|
:cond_1
|
|
iget-boolean v0, p1, Lcom/moji/newliveview/dynamic/EventDynamicComment;->d:Z
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 238
|
|
iget-object p1, p1, Lcom/moji/newliveview/dynamic/EventDynamicComment;->b:Lcom/moji/http/snsforum/entity/DynamicComment;
|
|
|
|
iget-wide v0, p1, Lcom/moji/http/snsforum/entity/DynamicComment;->dynamic_id:J
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
invoke-virtual {p0, v0, v1, v2, v3}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->a(JJ)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 240
|
|
:cond_2
|
|
iget-object v0, p1, Lcom/moji/newliveview/dynamic/EventDynamicComment;->b:Lcom/moji/http/snsforum/entity/DynamicComment;
|
|
|
|
iget-wide v0, v0, Lcom/moji/http/snsforum/entity/DynamicComment;->dynamic_id:J
|
|
|
|
iget-object p1, p1, Lcom/moji/newliveview/dynamic/EventDynamicComment;->b:Lcom/moji/http/snsforum/entity/DynamicComment;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/http/snsforum/entity/DynamicComment;->getCommentId()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-virtual {p0, v0, v1, v2, v3}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->a(JJ)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public addPraiseEvent(Lcom/moji/newliveview/dynamic/AddPraiseEvent;)V
|
|
.locals 2
|
|
.annotation runtime Lorg/greenrobot/eventbus/Subscribe;
|
|
a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
|
|
.end annotation
|
|
|
|
.line 247
|
|
iget-wide v0, p1, Lcom/moji/newliveview/dynamic/AddPraiseEvent;->a:J
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->c(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()Lcom/moji/http/snsforum/BaseNewLiveRequest;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/moji/http/snsforum/BaseNewLiveRequest<",
|
|
"Lcom/moji/http/snsforum/entity/PictureDynamicListResult;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public b(Lcom/moji/newliveview/dynamic/DynamicCell;)V
|
|
.locals 2
|
|
|
|
.line 214
|
|
new-instance v0, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;-><init>(Landroid/content/Context;)V
|
|
|
|
sget v1, Lcom/moji/user/R$string;->point_info:I
|
|
|
|
.line 215
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->a(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/user/R$string;->delete_dynamic_notice:I
|
|
|
|
.line 216
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->b(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/user/R$string;->ok:I
|
|
|
|
.line 217
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->d(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/user/R$string;->cancel:I
|
|
|
|
.line 218
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->e(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/moji/user/homepage/fragment/UserDynamicFragment$1;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/moji/user/homepage/fragment/UserDynamicFragment$1;-><init>(Lcom/moji/user/homepage/fragment/UserDynamicFragment;Lcom/moji/newliveview/dynamic/DynamicCell;)V
|
|
|
|
.line 219
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->a(Lcom/moji/dialog/control/MJDialogDefaultControl$SingleButtonCallback;)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
.line 225
|
|
invoke-virtual {p1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->b()Lcom/moji/dialog/MJDialog;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b_(Lcom/moji/newliveview/dynamic/DynamicCell;)V
|
|
.locals 1
|
|
|
|
.line 177
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->b(Lcom/moji/newliveview/dynamic/base/Cell;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c(J)V
|
|
.locals 5
|
|
|
|
.line 113
|
|
iget-object v0, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->k:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->e()Ljava/util/ArrayList;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_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/newliveview/dynamic/base/Cell;
|
|
|
|
.line 114
|
|
instance-of v2, v1, Lcom/moji/newliveview/dynamic/DynamicCell;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
check-cast v1, Lcom/moji/newliveview/dynamic/DynamicCell;
|
|
|
|
invoke-virtual {v1}, Lcom/moji/newliveview/dynamic/DynamicCell;->f()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/PictureDynamic;
|
|
|
|
iget-wide v2, v2, Lcom/moji/http/snsforum/entity/PictureDynamic;->dynamic_id:J
|
|
|
|
cmp-long v4, v2, p1
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
.line 115
|
|
invoke-virtual {p0, v1}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->a_(Lcom/moji/newliveview/dynamic/DynamicCell;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public e()I
|
|
.locals 1
|
|
|
|
.line 66
|
|
sget v0, Lcom/moji/user/R$layout;->fragment_picture:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public synthetic h()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 41
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->i()Lcom/moji/user/homepage/presenter/UserDynamicPresenter;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public i()Lcom/moji/user/homepage/presenter/UserDynamicPresenter;
|
|
.locals 3
|
|
|
|
.line 79
|
|
new-instance v0, Lcom/moji/user/homepage/presenter/UserDynamicPresenter;
|
|
|
|
iget-wide v1, p0, Lcom/moji/user/homepage/fragment/UserDynamicFragment;->h:J
|
|
|
|
invoke-direct {v0, p0, v1, v2}, Lcom/moji/user/homepage/presenter/UserDynamicPresenter;-><init>(Lcom/moji/newliveview/dynamic/presenter/DynamicPresenter$DynamicViewCallBack;J)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public onCreate(Landroid/os/Bundle;)V
|
|
.locals 0
|
|
|
|
.line 54
|
|
invoke-super {p0, p1}, Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
.line 55
|
|
invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p0}, Lcom/moji/bus/Bus;->a(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDestroy()V
|
|
.locals 1
|
|
|
|
.line 60
|
|
invoke-super {p0}, Lcom/moji/user/homepage/fragment/UserCenterBaseFragment;->onDestroy()V
|
|
|
|
.line 61
|
|
invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/moji/bus/Bus;->b(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|