159 lines
5.2 KiB
Smali
159 lines
5.2 KiB
Smali
.class public final Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter;
|
|
.super Landroidx/recyclerview/widget/RecyclerView$Adapter;
|
|
.source "ExperimentOverridesAdapter.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$ExperimentViewHolder;,
|
|
Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$Item;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroidx/recyclerview/widget/RecyclerView$Adapter<",
|
|
"Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$ExperimentViewHolder;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public items:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$Item;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;-><init>()V
|
|
|
|
sget-object v0, Lc0/i/l;->d:Lc0/i/l;
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter;->items:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getItemCount()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter;->items:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public bridge synthetic onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
|
|
.locals 0
|
|
|
|
check-cast p1, Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$ExperimentViewHolder;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter;->onBindViewHolder(Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$ExperimentViewHolder;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onBindViewHolder(Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$ExperimentViewHolder;I)V
|
|
.locals 1
|
|
|
|
const-string v0, "holder"
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter;->items:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$Item;
|
|
|
|
invoke-virtual {p1, p2}, Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$ExperimentViewHolder;->bind(Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$Item;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter;->onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$ExperimentViewHolder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$ExperimentViewHolder;
|
|
.locals 2
|
|
|
|
const-string p2, "parent"
|
|
|
|
invoke-static {p1, p2}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object p2
|
|
|
|
const v0, 0x7f0d0055
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p2, v0, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance p2, Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$ExperimentViewHolder;
|
|
|
|
const-string v0, "view"
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p2, p1}, Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$ExperimentViewHolder;-><init>(Landroid/view/View;)V
|
|
|
|
return-object p2
|
|
.end method
|
|
|
|
.method public final setData(Ljava/util/List;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter$Item;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "items"
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/settings/developer/ExperimentOverridesAdapter;->items:Ljava/util/List;
|
|
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V
|
|
|
|
return-void
|
|
.end method
|