155 lines
4.2 KiB
Smali
155 lines
4.2 KiB
Smali
.class public Lcom/moji/index/VideoAdapter;
|
|
.super Lcom/moji/recyclerview/RecyclerAdapter;
|
|
.source "VideoAdapter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/index/VideoAdapter$VideoHolder;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/recyclerview/RecyclerAdapter<",
|
|
"Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;",
|
|
"Lcom/moji/index/VideoAdapter$VideoHolder;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/util/List;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 22
|
|
invoke-direct {p0, p1}, Lcom/moji/recyclerview/RecyclerAdapter;-><init>(Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a(Landroid/view/View;I)Lcom/moji/index/VideoAdapter$VideoHolder;
|
|
.locals 0
|
|
|
|
.line 27
|
|
new-instance p2, Lcom/moji/index/VideoAdapter$VideoHolder;
|
|
|
|
invoke-direct {p2, p1, p0}, Lcom/moji/index/VideoAdapter$VideoHolder;-><init>(Landroid/view/View;Lcom/moji/recyclerview/RecyclerAdapter;)V
|
|
|
|
return-object p2
|
|
.end method
|
|
|
|
.method protected a(Lcom/moji/index/VideoAdapter$VideoHolder;ILcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;)V
|
|
.locals 3
|
|
|
|
.line 37
|
|
iget-object v0, p1, Lcom/moji/index/VideoAdapter$VideoHolder;->n:Landroid/widget/TextView;
|
|
|
|
iget-object v1, p3, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;->content_name:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 38
|
|
iget-object v0, p3, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;->picture_path_list:Ljava/util/List;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 39
|
|
iget-object v0, p1, Lcom/moji/index/VideoAdapter$VideoHolder;->o:Landroid/widget/ImageView;
|
|
|
|
iget-object p3, p3, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;->picture_path_list:Ljava/util/List;
|
|
|
|
invoke-interface {p3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p3
|
|
|
|
check-cast p3, Ljava/lang/String;
|
|
|
|
sget v2, Lcom/moji/index/R$drawable;->zaker_ad_default_image:I
|
|
|
|
invoke-static {v0, p3, v2}, Lcom/moji/tool/ImageTool;->b(Landroid/widget/ImageView;Ljava/lang/String;I)V
|
|
|
|
.line 41
|
|
:cond_0
|
|
iget-object p3, p1, Lcom/moji/index/VideoAdapter$VideoHolder;->p:Landroid/view/View;
|
|
|
|
const/16 v0, 0x8
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/16 v2, 0x8
|
|
|
|
:goto_0
|
|
invoke-virtual {p3, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 42
|
|
iget-object p1, p1, Lcom/moji/index/VideoAdapter$VideoHolder;->q:Landroid/view/View;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/index/VideoAdapter;->a()I
|
|
|
|
move-result p3
|
|
|
|
add-int/lit8 p3, p3, -0x1
|
|
|
|
if-ne p2, p3, :cond_2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:cond_2
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected bridge synthetic a(Lcom/moji/recyclerview/RecyclerHolder;ILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 19
|
|
check-cast p1, Lcom/moji/index/VideoAdapter$VideoHolder;
|
|
|
|
check-cast p3, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/moji/index/VideoAdapter;->a(Lcom/moji/index/VideoAdapter$VideoHolder;ILcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected synthetic b(Landroid/view/View;I)Lcom/moji/recyclerview/RecyclerHolder;
|
|
.locals 0
|
|
|
|
.line 19
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/index/VideoAdapter;->a(Landroid/view/View;I)Lcom/moji/index/VideoAdapter$VideoHolder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method protected f(I)I
|
|
.locals 0
|
|
|
|
.line 32
|
|
sget p1, Lcom/moji/index/R$layout;->item_video:I
|
|
|
|
return p1
|
|
.end method
|