183 lines
6.6 KiB
Smali
183 lines
6.6 KiB
Smali
|
.class public final Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter;
|
||
|
.super Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$ReactionUserItem;,
|
||
|
Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$ErrorItem;,
|
||
|
Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$LoadingItem;,
|
||
|
Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$ReactionUserViewHolder;,
|
||
|
Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$ErrorViewHolder;,
|
||
|
Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$LoadingViewHolder;,
|
||
|
Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$Companion;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple<",
|
||
|
"Lcom/discord/utilities/mg_recycler/MGRecyclerDataPayload;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field public static final Companion:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$Companion;
|
||
|
|
||
|
.field private static final VIEW_TYPE_ERROR:I = 0x2
|
||
|
|
||
|
.field private static final VIEW_TYPE_LOADING:I = 0x1
|
||
|
|
||
|
.field private static final VIEW_TYPE_USER:I
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private retryClickedListener:Lkotlin/jvm/functions/Function0;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Lkotlin/jvm/functions/Function0<",
|
||
|
"Lkotlin/Unit;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method static constructor <clinit>()V
|
||
|
.locals 2
|
||
|
|
||
|
new-instance v0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$Companion;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-direct {v0, v1}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
|
||
|
sput-object v0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter;->Companion:Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$Companion;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Landroidx/recyclerview/widget/RecyclerView;)V
|
||
|
.locals 1
|
||
|
|
||
|
const-string v0, "recycler"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-direct {p0, p1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;-><init>(Landroidx/recyclerview/widget/RecyclerView;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$getRetryClickedListener$p(Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter;)Lkotlin/jvm/functions/Function0;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter;->retryClickedListener:Lkotlin/jvm/functions/Function0;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$setRetryClickedListener$p(Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter;Lkotlin/jvm/functions/Function0;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter;->retryClickedListener:Lkotlin/jvm/functions/Function0;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final bridge synthetic onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter;->onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public final 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/widgets/chat/manage_reactions/ManageReactionsResultsAdapter;",
|
||
|
"Lcom/discord/utilities/mg_recycler/MGRecyclerDataPayload;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "parent"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
packed-switch p2, :pswitch_data_0
|
||
|
|
||
|
invoke-virtual {p0, p2}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter;->invalidViewTypeException(I)Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p1
|
||
|
|
||
|
:pswitch_0
|
||
|
new-instance p1, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$ErrorViewHolder;
|
||
|
|
||
|
invoke-direct {p1, p0}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$ErrorViewHolder;-><init>(Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter;)V
|
||
|
|
||
|
:goto_0
|
||
|
check-cast p1, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;
|
||
|
|
||
|
return-object p1
|
||
|
|
||
|
:pswitch_1
|
||
|
new-instance p1, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$LoadingViewHolder;
|
||
|
|
||
|
invoke-direct {p1, p0}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$LoadingViewHolder;-><init>(Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:pswitch_2
|
||
|
new-instance p1, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$ReactionUserViewHolder;
|
||
|
|
||
|
invoke-direct {p1, p0}, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter$ReactionUserViewHolder;-><init>(Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
nop
|
||
|
|
||
|
:pswitch_data_0
|
||
|
.packed-switch 0x0
|
||
|
:pswitch_2
|
||
|
:pswitch_1
|
||
|
:pswitch_0
|
||
|
.end packed-switch
|
||
|
.end method
|
||
|
|
||
|
.method public final setOnRetryListener(Lkotlin/jvm/functions/Function0;)V
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lkotlin/jvm/functions/Function0<",
|
||
|
"Lkotlin/Unit;",
|
||
|
">;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/widgets/chat/manage_reactions/ManageReactionsResultsAdapter;->retryClickedListener:Lkotlin/jvm/functions/Function0;
|
||
|
|
||
|
return-void
|
||
|
.end method
|