apkfuckery/com.discord/smali/com/discord/widgets/debugging/WidgetDebugging$Adapter.smali

97 lines
3.1 KiB
Smali

.class public final Lcom/discord/widgets/debugging/WidgetDebugging$Adapter;
.super Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;
.source "WidgetDebugging.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/discord/widgets/debugging/WidgetDebugging;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Adapter"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/widgets/debugging/WidgetDebugging$Adapter$Item;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple<",
"Lcom/discord/app/AppLog$LoggedItem;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>(Landroidx/recyclerview/widget/RecyclerView;)V
.locals 1
const-string v0, "recycler"
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, p1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;-><init>(Landroidx/recyclerview/widget/RecyclerView;)V
new-instance v0, Lcom/discord/widgets/debugging/WidgetDebugging$Adapter$1;
invoke-direct {v0, p1}, Lcom/discord/widgets/debugging/WidgetDebugging$Adapter$1;-><init>(Landroidx/recyclerview/widget/RecyclerView;)V
invoke-virtual {p0, v0}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->setOnUpdated(Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple$OnUpdated;)V
return-void
.end method
# virtual methods
.method public bridge synthetic onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.locals 0
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/debugging/WidgetDebugging$Adapter;->onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;
move-result-object p1
return-object p1
.end method
.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/view/ViewGroup;",
"I)",
"Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder<",
"*",
"Lcom/discord/app/AppLog$LoggedItem;",
">;"
}
.end annotation
const-string v0, "parent"
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
if-nez p2, :cond_0
new-instance p1, Lcom/discord/widgets/debugging/WidgetDebugging$Adapter$Item;
const p2, 0x7f0d01cf
invoke-direct {p1, p2, p0}, Lcom/discord/widgets/debugging/WidgetDebugging$Adapter$Item;-><init>(ILcom/discord/widgets/debugging/WidgetDebugging$Adapter;)V
return-object p1
:cond_0
invoke-virtual {p0, p2}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;->invalidViewTypeException(I)Ljava/lang/IllegalArgumentException;
move-result-object p1
throw p1
.end method