GiftCardRedeemHistoryFragment.smali
.class public Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;
.super Lcom/cmcm/safewallet/ui/base/a/c;
.source "GiftCardRedeemHistoryFragment.java"
# interfaces
.implements Lcom/cmcm/safewallet/ui/giftcard/c;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/cmcm/safewallet/ui/base/a/c",
"<",
"Lcom/cmcm/safewallet/ui/giftcard/d;",
">;",
"Lcom/cmcm/safewallet/ui/giftcard/c;"
}
.end annotation
# instance fields
.field private alk:Lcom/cmcm/safewallet/ui/giftcard/adpter/GiftCardRedeemHistoryItemAdapter;
.field mEmptyLayout:Landroid/widget/LinearLayout;
.annotation build Lbutterknife/BindView;
.end annotation
.end field
.field mRecyclerView:Landroid/support/v7/widget/RecyclerView;
.annotation build Lbutterknife/BindView;
.end annotation
.end field
.field mRefreshLayout:Lcom/cmcm/safewallet/ui/widget/pull/LottieRefreshView;
.annotation build Lbutterknife/BindView;
.end annotation
.end field
.field mSWLoadingView:Lcom/cmcm/safewallet/ui/widget/md/SWLoadingView;
.annotation build Lbutterknife/BindView;
.end annotation
.end field
.field mStatus:Landroid/widget/TextView;
.annotation build Lbutterknife/BindView;
.end annotation
.end field
.field mStatusIcon:Landroid/widget/ImageView;
.annotation build Lbutterknife/BindView;
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 36
invoke-direct {p0}, Lcom/cmcm/safewallet/ui/base/a/c;-><init>()V
return-void
.end method
.method public static oo()Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;
.registers 2
.prologue
.line 59
new-instance v0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;
invoke-direct {v0}, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;-><init>()V
.line 60
new-instance v1, Landroid/os/Bundle;
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
.line 61
invoke-virtual {v0, v1}, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->setArguments(Landroid/os/Bundle;)V
.line 62
return-object v0
.end method
.method static synthetic oq()V
.registers 4
.prologue
const/16 v3, 0x63
const/4 v2, 0x3
.line 4136
invoke-static {}, Lcom/cmcm/safewallet/data/f/b/b;->lr()Lcom/cmcm/safewallet/data/f/b/b;
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
invoke-static {v0, v1, v3, v2}, Lcom/cmcm/safewallet/data/f/b/b;->a(JII)V
.line 4137
invoke-static {v3, v2}, Lcom/cmcm/safewallet/data/f/c/a;->M(II)V
.line 36
return-void
.end method
# virtual methods
.method public final O(Z)V
.registers 3
.prologue
.line 121
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mRefreshLayout:Lcom/cmcm/safewallet/ui/widget/pull/LottieRefreshView;
.line 3076
iput-boolean p1, v0, Lcom/cmcm/safewallet/ui/widget/pull/RefreshLayout;->aNp:Z
.line 122
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mRefreshLayout:Lcom/cmcm/safewallet/ui/widget/pull/LottieRefreshView;
invoke-virtual {v0}, Lcom/cmcm/safewallet/ui/widget/pull/LottieRefreshView;->uJ()V
.line 123
return-void
.end method
.method protected final synthetic ab(Landroid/content/Context;)Lcom/cmcm/safewallet/ui/base/c/b;
.registers 3
.prologue
.line 4068
new-instance v0, Lcom/cmcm/safewallet/ui/giftcard/d;
invoke-direct {v0, p1}, Lcom/cmcm/safewallet/ui/giftcard/d;-><init>(Landroid/content/Context;)V
.line 36
return-object v0
.end method
.method protected final mH()I
.registers 2
.prologue
.line 101
const v0, 0x7f03009f
return v0
.end method
.method public final mU()V
.registers 3
.prologue
.line 127
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mSWLoadingView:Lcom/cmcm/safewallet/ui/widget/md/SWLoadingView;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lcom/cmcm/safewallet/ui/widget/md/SWLoadingView;->n(Z)V
.line 128
return-void
.end method
.method public final mV()V
.registers 3
.prologue
.line 132
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mSWLoadingView:Lcom/cmcm/safewallet/ui/widget/md/SWLoadingView;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/cmcm/safewallet/ui/widget/md/SWLoadingView;->n(Z)V
.line 133
return-void
.end method
.method protected final my()V
.registers 4
.prologue
.line 73
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mRefreshLayout:Lcom/cmcm/safewallet/ui/widget/pull/LottieRefreshView;
.line 1068
const/4 v1, 0x0
iput-boolean v1, v0, Lcom/cmcm/safewallet/ui/widget/pull/RefreshLayout;->aNq:Z
.line 74
iget-object v1, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mRefreshLayout:Lcom/cmcm/safewallet/ui/widget/pull/LottieRefreshView;
invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mJ()Lcom/cmcm/safewallet/ui/base/c/b;
move-result-object v0
check-cast v0, Lcom/cmcm/safewallet/ui/widget/pull/c;
.line 1130
iput-object v0, v1, Lcom/cmcm/safewallet/ui/widget/pull/RefreshLayout;->aNs:Lcom/cmcm/safewallet/ui/widget/pull/c;
.line 75
new-instance v0, Lcom/cmcm/safewallet/ui/giftcard/adpter/GiftCardRedeemHistoryItemAdapter;
invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->getContext()Landroid/content/Context;
move-result-object v1
invoke-direct {v0, v1}, Lcom/cmcm/safewallet/ui/giftcard/adpter/GiftCardRedeemHistoryItemAdapter;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->alk:Lcom/cmcm/safewallet/ui/giftcard/adpter/GiftCardRedeemHistoryItemAdapter;
.line 76
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mRecyclerView:Landroid/support/v7/widget/RecyclerView;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setHasFixedSize(Z)V
.line 77
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mRecyclerView:Landroid/support/v7/widget/RecyclerView;
new-instance v1, Landroid/support/v7/widget/DefaultItemAnimator;
invoke-direct {v1}, Landroid/support/v7/widget/DefaultItemAnimator;-><init>()V
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setItemAnimator(Landroid/support/v7/widget/RecyclerView$ItemAnimator;)V
.line 78
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mRecyclerView:Landroid/support/v7/widget/RecyclerView;
iget-object v1, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->alk:Lcom/cmcm/safewallet/ui/giftcard/adpter/GiftCardRedeemHistoryItemAdapter;
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V
.line 79
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mRecyclerView:Landroid/support/v7/widget/RecyclerView;
new-instance v1, Landroid/support/v7/widget/LinearLayoutManager;
invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->getContext()Landroid/content/Context;
move-result-object v2
invoke-direct {v1, v2}, Landroid/support/v7/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V
.line 80
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->alk:Lcom/cmcm/safewallet/ui/giftcard/adpter/GiftCardRedeemHistoryItemAdapter;
new-instance v1, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment$1;
invoke-direct {v1, p0}, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment$1;-><init>(Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;)V
.line 2121
iput-object v1, v0, Lcom/cmcm/safewallet/ui/giftcard/adpter/GiftCardRedeemHistoryItemAdapter;->anl:Lcom/cmcm/safewallet/ui/giftcard/adpter/d;
.line 92
return-void
.end method
.method protected final mz()V
.registers 1
.prologue
.line 97
return-void
.end method
.method public final op()V
.registers 3
.prologue
.line 113
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mRefreshLayout:Lcom/cmcm/safewallet/ui/widget/pull/LottieRefreshView;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Lcom/cmcm/safewallet/ui/widget/pull/LottieRefreshView;->setVisibility(I)V
.line 114
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mEmptyLayout:Landroid/widget/LinearLayout;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V
.line 115
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mStatus:Landroid/widget/TextView;
const v1, 0x7f080129
invoke-virtual {p0, v1}, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 116
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mStatusIcon:Landroid/widget/ImageView;
const v1, 0x7f02012f
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V
.line 117
return-void
.end method
.method public final u(Ljava/util/List;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Lcom/cmcm/safewallet/data/giftcard/History;",
">;)V"
}
.end annotation
.prologue
.line 106
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mEmptyLayout:Landroid/widget/LinearLayout;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V
.line 107
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->mRefreshLayout:Lcom/cmcm/safewallet/ui/widget/pull/LottieRefreshView;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lcom/cmcm/safewallet/ui/widget/pull/LottieRefreshView;->setVisibility(I)V
.line 108
iget-object v0, p0, Lcom/cmcm/safewallet/ui/giftcard/GiftCardRedeemHistoryFragment;->alk:Lcom/cmcm/safewallet/ui/giftcard/adpter/GiftCardRedeemHistoryItemAdapter;
.line 3047
iget-object v1, v0, Lcom/cmcm/safewallet/ui/giftcard/adpter/GiftCardRedeemHistoryItemAdapter;->alr:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->clear()V
.line 3048
iget-object v1, v0, Lcom/cmcm/safewallet/ui/giftcard/adpter/GiftCardRedeemHistoryItemAdapter;->alr:Ljava/util/List;
invoke-interface {v1, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
.line 3049
invoke-virtual {v0}, Lcom/cmcm/safewallet/ui/giftcard/adpter/GiftCardRedeemHistoryItemAdapter;->notifyDataSetChanged()V
.line 109
return-void
.end method