ExchangeHistoryDetailAdapter.smali
.class public final Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter;
.super Lcom/cmcm/safewallet/ui/base/adapter/a;
.source "ExchangeHistoryDetailAdapter.java"
# instance fields
.field private aiZ:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Lcom/cmcm/safewallet/ui/exchange/adapter/c;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/util/List",
"<",
"Lcom/cmcm/safewallet/ui/exchange/adapter/c;",
">;)V"
}
.end annotation
.prologue
.line 28
invoke-direct {p0, p1}, Lcom/cmcm/safewallet/ui/base/adapter/a;-><init>(Landroid/content/Context;)V
.line 29
iput-object p2, p0, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter;->aiZ:Ljava/util/List;
.line 30
return-void
.end method
# virtual methods
.method public final getItemCount()I
.registers 2
.prologue
.line 65
iget-object v0, p0, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter;->aiZ:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
return v0
.end method
.method public final getItemViewType(I)I
.registers 3
.prologue
.line 60
iget-object v0, p0, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter;->aiZ:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cmcm/safewallet/ui/exchange/adapter/c;
.line 3033
iget v0, v0, Lcom/cmcm/safewallet/ui/exchange/adapter/c;->type:I
.line 60
return v0
.end method
.method public final onBindViewHolder(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V
.registers 6
.prologue
.line 46
instance-of v0, p1, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter$HistoryContentViewHolder;
if-eqz v0, :cond_1d
.line 47
check-cast p1, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter$HistoryContentViewHolder;
.line 48
iget-object v0, p0, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter;->aiZ:Ljava/util/List;
invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cmcm/safewallet/ui/exchange/adapter/c;
.line 49
iget-object v1, p1, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter$HistoryContentViewHolder;->mTitleText:Landroid/widget/TextView;
.line 2025
iget-object v2, v0, Lcom/cmcm/safewallet/ui/exchange/adapter/c;->title:Ljava/lang/String;
.line 49
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 50
iget-object v1, p1, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter$HistoryContentViewHolder;->mDescText:Landroid/widget/TextView;
.line 2029
iget-object v0, v0, Lcom/cmcm/safewallet/ui/exchange/adapter/c;->content:Ljava/lang/String;
.line 50
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 56
:cond_1c
:goto_1c
return-void
.line 51
:cond_1d
instance-of v0, p1, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter$HistoryTipViewHolder;
if-eqz v0, :cond_1c
.line 52
check-cast p1, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter$HistoryTipViewHolder;
.line 53
iget-object v0, p0, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter;->aiZ:Ljava/util/List;
invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cmcm/safewallet/ui/exchange/adapter/c;
.line 54
iget-object v1, p1, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter$HistoryTipViewHolder;->mTip:Landroid/widget/TextView;
.line 3029
iget-object v0, v0, Lcom/cmcm/safewallet/ui/exchange/adapter/c;->content:Ljava/lang/String;
.line 54
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto :goto_1c
.end method
.method public final onCreateViewHolder(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;
.registers 6
.prologue
const/4 v2, 0x0
.line 34
const/4 v0, 0x2
if-ne p2, v0, :cond_13
.line 1020
iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/adapter/a;->mInflater:Landroid/view/LayoutInflater;
.line 36
const v1, 0x7f030093
invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object v1
.line 37
new-instance v0, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter$HistoryTipViewHolder;
invoke-direct {v0, v1}, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter$HistoryTipViewHolder;-><init>(Landroid/view/View;)V
.line 40
:goto_12
return-object v0
.line 2020
:cond_13
iget-object v0, p0, Lcom/cmcm/safewallet/ui/base/adapter/a;->mInflater:Landroid/view/LayoutInflater;
.line 39
const v1, 0x7f030097
invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object v1
.line 40
new-instance v0, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter$HistoryContentViewHolder;
invoke-direct {v0, v1}, Lcom/cmcm/safewallet/ui/exchange/adapter/ExchangeHistoryDetailAdapter$HistoryContentViewHolder;-><init>(Landroid/view/View;)V
goto :goto_12
.end method