a.smali
.class public Lcom/cleanmaster/gameboost/ui/a/a;
.super Landroid/support/v7/widget/RecyclerView$Adapter;
.source "GameBoostInterceptAdapter.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/cleanmaster/gameboost/ui/a/a$a;,
Lcom/cleanmaster/gameboost/ui/a/a$c;,
Lcom/cleanmaster/gameboost/ui/a/a$b;
}
.end annotation
# instance fields
.field a:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Lcom/cleanmaster/gameboost/modle/AbsGameModel;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 23
invoke-direct {p0}, Landroid/support/v7/widget/RecyclerView$Adapter;-><init>()V
return-void
.end method
# virtual methods
.method public a()V
.registers 2
.prologue
.line 67
const/4 v0, 0x0
iput-object v0, p0, Lcom/cleanmaster/gameboost/ui/a/a;->a:Ljava/util/List;
.line 68
invoke-virtual {p0}, Lcom/cleanmaster/gameboost/ui/a/a;->notifyDataSetChanged()V
.line 69
return-void
.end method
.method public a(Ljava/util/List;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Lcom/cleanmaster/gameboost/modle/AbsGameModel;",
">;)V"
}
.end annotation
.prologue
.line 62
iput-object p1, p0, Lcom/cleanmaster/gameboost/ui/a/a;->a:Ljava/util/List;
.line 63
invoke-virtual {p0}, Lcom/cleanmaster/gameboost/ui/a/a;->notifyDataSetChanged()V
.line 64
return-void
.end method
.method public getItemCount()I
.registers 2
.prologue
.line 53
iget-object v0, p0, Lcom/cleanmaster/gameboost/ui/a/a;->a:Ljava/util/List;
if-nez v0, :cond_6
const/4 v0, 0x0
:goto_5
return v0
:cond_6
iget-object v0, p0, Lcom/cleanmaster/gameboost/ui/a/a;->a:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
goto :goto_5
.end method
.method public getItemViewType(I)I
.registers 3
.prologue
.line 58
iget-object v0, p0, Lcom/cleanmaster/gameboost/ui/a/a;->a:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cleanmaster/gameboost/modle/AbsGameModel;
iget v0, v0, Lcom/cleanmaster/gameboost/modle/AbsGameModel;->b:I
return v0
.end method
.method public onBindViewHolder(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V
.registers 5
.prologue
.line 41
iget-object v0, p0, Lcom/cleanmaster/gameboost/ui/a/a;->a:Ljava/util/List;
invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cleanmaster/gameboost/modle/AbsGameModel;
.line 42
instance-of v1, p1, Lcom/cleanmaster/gameboost/ui/a/a$b;
if-eqz v1, :cond_14
.line 43
check-cast p1, Lcom/cleanmaster/gameboost/ui/a/a$b;
check-cast v0, Lcom/cleanmaster/gameboost/modle/e;
invoke-virtual {p1, v0}, Lcom/cleanmaster/gameboost/ui/a/a$b;->a(Lcom/cleanmaster/gameboost/modle/e;)V
.line 49
:cond_13
:goto_13
return-void
.line 44
:cond_14
instance-of v1, p1, Lcom/cleanmaster/gameboost/ui/a/a$c;
if-eqz v1, :cond_20
.line 45
check-cast p1, Lcom/cleanmaster/gameboost/ui/a/a$c;
check-cast v0, Lcom/cleanmaster/gameboost/modle/f;
invoke-virtual {p1, v0}, Lcom/cleanmaster/gameboost/ui/a/a$c;->a(Lcom/cleanmaster/gameboost/modle/f;)V
goto :goto_13
.line 46
:cond_20
instance-of v1, p1, Lcom/cleanmaster/gameboost/ui/a/a$a;
if-eqz v1, :cond_13
.line 47
check-cast p1, Lcom/cleanmaster/gameboost/ui/a/a$a;
check-cast v0, Lcom/cleanmaster/gameboost/modle/d;
invoke-virtual {p1, v0}, Lcom/cleanmaster/gameboost/ui/a/a$a;->a(Lcom/cleanmaster/gameboost/modle/d;)V
goto :goto_13
.end method
.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;
.registers 7
.prologue
const/4 v3, 0x0
.line 29
const/4 v0, 0x5
if-ne p2, v0, :cond_18
.line 30
new-instance v0, Lcom/cleanmaster/gameboost/ui/a/a$b;
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
move-result-object v1
invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object v1
sget v2, Lcom/cleanmaster/gameboost/R$layout;->item_game_boost_intercept_head_view:I
invoke-virtual {v1, v2, p1, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object v1
invoke-direct {v0, v1}, Lcom/cleanmaster/gameboost/ui/a/a$b;-><init>(Landroid/view/View;)V
.line 36
:goto_17
return-object v0
.line 31
:cond_18
const/4 v0, 0x6
if-ne p2, v0, :cond_2f
.line 32
new-instance v0, Lcom/cleanmaster/gameboost/ui/a/a$c;
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
move-result-object v1
invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object v1
sget v2, Lcom/cleanmaster/gameboost/R$layout;->item_game_boost_intercept_title_view:I
invoke-virtual {v1, v2, p1, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object v1
invoke-direct {v0, v1}, Lcom/cleanmaster/gameboost/ui/a/a$c;-><init>(Landroid/view/View;)V
goto :goto_17
.line 33
:cond_2f
const/4 v0, 0x7
if-ne p2, v0, :cond_46
.line 34
new-instance v0, Lcom/cleanmaster/gameboost/ui/a/a$a;
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
move-result-object v1
invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object v1
sget v2, Lcom/cleanmaster/gameboost/R$layout;->item_game_boost_intercept_content_view:I
invoke-virtual {v1, v2, p1, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object v1
invoke-direct {v0, v1}, Lcom/cleanmaster/gameboost/ui/a/a$a;-><init>(Landroid/view/View;)V
goto :goto_17
.line 36
:cond_46
const/4 v0, 0x0
goto :goto_17
.end method