123 lines
2.6 KiB
Smali
123 lines
2.6 KiB
Smali
.class abstract Lcom/my/target/PromoAdapter;
|
|
.super Landroidx/recyclerview/widget/RecyclerView$Adapter;
|
|
.source "PromoAdapter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
|
|
">",
|
|
"Landroidx/recyclerview/widget/RecyclerView$Adapter<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final a:Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final b:Ljava/util/List;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/my/target/p1/c/a/InterstitialAdCard;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field c:Landroid/view/View$OnClickListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field d:Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Ljava/util/List;Landroid/content/Context;)V
|
|
.locals 0
|
|
.param p1 # Ljava/util/List;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/my/target/p1/c/a/InterstitialAdCard;",
|
|
">;",
|
|
"Landroid/content/Context;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;-><init>()V
|
|
|
|
.line 2
|
|
iput-object p1, p0, Lcom/my/target/PromoAdapter;->b:Ljava/util/List;
|
|
|
|
.line 3
|
|
iput-object p2, p0, Lcom/my/target/PromoAdapter;->a:Landroid/content/Context;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getItemCount()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/my/target/PromoAdapter;->b:Ljava/util/List;
|
|
|
|
.line 2
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getItemViewType(I)I
|
|
.locals 2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 1
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/my/target/PromoAdapter;->getItemCount()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
if-ne p1, v1, :cond_1
|
|
|
|
const/4 p1, 0x2
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|