360 lines
11 KiB
Smali
360 lines
11 KiB
Smali
.class public Lcom/moji/newliveview/dynamic/InterestAreaCell;
|
|
.super Lcom/moji/newliveview/dynamic/base/BaseCell;
|
|
.source "InterestAreaCell.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
.implements Lcom/moji/newliveview/base/view/AttentionButton$AttentionButtonOnClickCallBack;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/newliveview/dynamic/InterestAreaCell$CloseBtnClickCallBack;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/newliveview/dynamic/base/BaseCell<",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/InterestPeople;",
|
|
">;>;",
|
|
"Landroid/view/View$OnClickListener;",
|
|
"Lcom/moji/newliveview/base/view/AttentionButton$AttentionButtonOnClickCallBack;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field a:Landroid/support/v7/widget/LinearLayoutManager;
|
|
|
|
.field b:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/InterestPeople;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final d:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
.field private e:Lcom/moji/newliveview/dynamic/InterestAreaCell$CloseBtnClickCallBack;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/util/ArrayList;Lcom/moji/newliveview/dynamic/InterestAreaCell$CloseBtnClickCallBack;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/InterestPeople;",
|
|
">;",
|
|
"Lcom/moji/newliveview/dynamic/InterestAreaCell$CloseBtnClickCallBack;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 37
|
|
invoke-direct {p0, p1}, Lcom/moji/newliveview/dynamic/base/BaseCell;-><init>(Ljava/lang/Object;)V
|
|
|
|
.line 38
|
|
iput-object p2, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->e:Lcom/moji/newliveview/dynamic/InterestAreaCell$CloseBtnClickCallBack;
|
|
|
|
.line 39
|
|
new-instance p2, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-direct {p2}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;-><init>()V
|
|
|
|
iput-object p2, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->d:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
.line 40
|
|
invoke-virtual {p0, p1}, Lcom/moji/newliveview/dynamic/InterestAreaCell;->a(Ljava/util/ArrayList;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x2
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public a(Landroid/view/ViewGroup;I)Lcom/moji/newliveview/dynamic/base/CustomViewHolder;
|
|
.locals 3
|
|
|
|
.line 60
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p2
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_MOVES_INTEREST:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {p2, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
.line 61
|
|
new-instance p2, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;
|
|
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/newliveview/R$layout;->item_interest_area:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;-><init>(Landroid/view/View;)V
|
|
|
|
return-object p2
|
|
.end method
|
|
|
|
.method public a(JZ)V
|
|
.locals 5
|
|
|
|
.line 111
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->b: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_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/moji/http/snsforum/entity/InterestPeople;
|
|
|
|
.line 112
|
|
iget-wide v2, v1, Lcom/moji/http/snsforum/entity/InterestPeople;->sns_id:J
|
|
|
|
cmp-long v4, v2, p1
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
.line 113
|
|
iput-boolean p3, v1, Lcom/moji/http/snsforum/entity/InterestPeople;->is_concern:Z
|
|
|
|
.line 114
|
|
iget-object p1, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->d:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->c()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/newliveview/dynamic/base/CustomViewHolder;I)V
|
|
.locals 3
|
|
|
|
.line 66
|
|
sget p2, Lcom/moji/newliveview/R$id;->recycler_view:I
|
|
|
|
invoke-virtual {p1, p2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Landroid/support/v7/widget/RecyclerView;
|
|
|
|
.line 67
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->a:Landroid/support/v7/widget/LinearLayoutManager;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 68
|
|
new-instance v0, Landroid/support/v7/widget/LinearLayoutManager;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->y()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-direct {v0, v1, v2, v2}, Landroid/support/v7/widget/LinearLayoutManager;-><init>(Landroid/content/Context;IZ)V
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->a:Landroid/support/v7/widget/LinearLayoutManager;
|
|
|
|
.line 69
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->a:Landroid/support/v7/widget/LinearLayoutManager;
|
|
|
|
invoke-virtual {p2, v0}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V
|
|
|
|
.line 70
|
|
new-instance v0, Lcom/moji/newliveview/dynamic/InterestAreaCell$1;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/newliveview/dynamic/InterestAreaCell$1;-><init>(Lcom/moji/newliveview/dynamic/InterestAreaCell;)V
|
|
|
|
invoke-virtual {p2, v0}, Landroid/support/v7/widget/RecyclerView;->a(Landroid/support/v7/widget/RecyclerView$OnScrollListener;)V
|
|
|
|
.line 80
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->d:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p2, v0}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V
|
|
|
|
.line 82
|
|
sget p2, Lcom/moji/newliveview/R$id;->close:I
|
|
|
|
invoke-virtual {p1, p2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
|
|
|
.line 83
|
|
invoke-virtual {p1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)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/http/snsforum/entity/InterestPeople;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 44
|
|
iput-object p1, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->b:Ljava/util/ArrayList;
|
|
|
|
.line 45
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->d:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->d()V
|
|
|
|
.line 46
|
|
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 v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/http/snsforum/entity/InterestPeople;
|
|
|
|
.line 47
|
|
new-instance v1, Lcom/moji/newliveview/dynamic/InterestPeopleCell;
|
|
|
|
invoke-direct {v1, v0, p0}, Lcom/moji/newliveview/dynamic/InterestPeopleCell;-><init>(Lcom/moji/http/snsforum/entity/InterestPeople;Lcom/moji/newliveview/base/view/AttentionButton$AttentionButtonOnClickCallBack;)V
|
|
|
|
.line 48
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->d:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->a(Lcom/moji/newliveview/dynamic/base/Cell;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 50
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->d:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(ZI)V
|
|
.locals 1
|
|
|
|
.line 103
|
|
iget-object v0, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->b:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/moji/http/snsforum/entity/InterestPeople;
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 105
|
|
iput-boolean p1, p2, Lcom/moji/http/snsforum/entity/InterestPeople;->is_concern:Z
|
|
|
|
.line 106
|
|
iget-object p1, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->d:Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomRecyclerAdapter;->c()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onClick(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
.line 89
|
|
invoke-static {}, Lcom/moji/tool/Utils;->b()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 92
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getId()I
|
|
|
|
move-result p1
|
|
|
|
.line 93
|
|
sget v0, Lcom/moji/newliveview/R$id;->close:I
|
|
|
|
if-ne p1, v0, :cond_1
|
|
|
|
.line 94
|
|
iget-object p1, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->e:Lcom/moji/newliveview/dynamic/InterestAreaCell$CloseBtnClickCallBack;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 95
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_MOVES_INTEREST_CLOSE:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
.line 96
|
|
iget-object p1, p0, Lcom/moji/newliveview/dynamic/InterestAreaCell;->e:Lcom/moji/newliveview/dynamic/InterestAreaCell$CloseBtnClickCallBack;
|
|
|
|
invoke-interface {p1, p0}, Lcom/moji/newliveview/dynamic/InterestAreaCell$CloseBtnClickCallBack;->a(Lcom/moji/newliveview/dynamic/InterestAreaCell;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|