419 lines
13 KiB
Smali
419 lines
13 KiB
Smali
.class public final Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;
|
|
.super Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;
|
|
.source "WidgetGuildsListAdapter.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$Item;,
|
|
Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemDirectMessage;,
|
|
Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemGuild;,
|
|
Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemProfile;,
|
|
Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemDivider;,
|
|
Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemGuildCreate;,
|
|
Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemGuildUnavailable;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple<",
|
|
"Lcom/discord/widgets/guilds/list/WidgetGuildsListModel$Item;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final canAnimateIcons:Z
|
|
|
|
.field private final horizontal:Z
|
|
|
|
.field private onClickListener:Lkotlin/jvm/functions/Function3;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/functions/Function3<",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"-",
|
|
"Lcom/discord/widgets/guilds/list/WidgetGuildsListModel$Item;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private onLongClickListener:Lkotlin/jvm/functions/Function3;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/functions/Function3<",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"-",
|
|
"Lcom/discord/widgets/guilds/list/WidgetGuildsListModel$Item;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final overlayColor:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/recyclerview/widget/RecyclerView;ZZI)V
|
|
.locals 1
|
|
.param p4 # I
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "recycler"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;-><init>(Landroidx/recyclerview/widget/RecyclerView;)V
|
|
|
|
iput-boolean p2, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->horizontal:Z
|
|
|
|
iput-boolean p3, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->canAnimateIcons:Z
|
|
|
|
iput p4, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->overlayColor:I
|
|
|
|
sget-object p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$onClickListener$1;->INSTANCE:Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$onClickListener$1;
|
|
|
|
check-cast p1, Lkotlin/jvm/functions/Function3;
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->onClickListener:Lkotlin/jvm/functions/Function3;
|
|
|
|
sget-object p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$onLongClickListener$1;->INSTANCE:Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$onLongClickListener$1;
|
|
|
|
check-cast p1, Lkotlin/jvm/functions/Function3;
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->onLongClickListener:Lkotlin/jvm/functions/Function3;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Landroidx/recyclerview/widget/RecyclerView;ZZIILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 1
|
|
|
|
and-int/lit8 p6, p5, 0x2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p6, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
and-int/lit8 p5, p5, 0x4
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:cond_1
|
|
invoke-direct {p0, p1, p2, p3, p4}, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;-><init>(Landroidx/recyclerview/widget/RecyclerView;ZZI)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$getHorizontal$p(Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;)Z
|
|
.locals 0
|
|
|
|
iget-boolean p0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->horizontal:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final getOnClickListener()Lkotlin/jvm/functions/Function3;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lkotlin/jvm/functions/Function3<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Integer;",
|
|
"Lcom/discord/widgets/guilds/list/WidgetGuildsListModel$Item;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->onClickListener:Lkotlin/jvm/functions/Function3;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getOnLongClickListener()Lkotlin/jvm/functions/Function3;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lkotlin/jvm/functions/Function3<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Integer;",
|
|
"Lcom/discord/widgets/guilds/list/WidgetGuildsListModel$Item;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->onLongClickListener:Lkotlin/jvm/functions/Function3;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.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/guilds/list/WidgetGuildsListAdapter;->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 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/ViewGroup;",
|
|
"I)",
|
|
"Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder<",
|
|
"*",
|
|
"Lcom/discord/widgets/guilds/list/WidgetGuildsListModel$Item;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "parent"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-eqz p2, :cond_a
|
|
|
|
const/4 p1, 0x1
|
|
|
|
if-eq p2, p1, :cond_8
|
|
|
|
const/4 p1, 0x2
|
|
|
|
if-eq p2, p1, :cond_6
|
|
|
|
const/4 p1, 0x3
|
|
|
|
if-eq p2, p1, :cond_4
|
|
|
|
const/4 p1, 0x4
|
|
|
|
if-eq p2, p1, :cond_2
|
|
|
|
const/4 p1, 0x5
|
|
|
|
if-ne p2, p1, :cond_1
|
|
|
|
new-instance p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemGuildCreate;
|
|
|
|
iget-boolean p2, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->horizontal:Z
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const p2, 0x7f0d0121
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const p2, 0x7f0d0120
|
|
|
|
:goto_0
|
|
invoke-direct {p1, p0, p2}, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemGuildCreate;-><init>(Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;I)V
|
|
|
|
check-cast p1, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
invoke-virtual {p0, p2}, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->invalidViewTypeException(I)Ljava/lang/IllegalArgumentException;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
:cond_2
|
|
new-instance p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemGuildUnavailable;
|
|
|
|
iget-boolean p2, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->horizontal:Z
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
const p2, 0x7f0d0123
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const p2, 0x7f0d0122
|
|
|
|
:goto_1
|
|
invoke-direct {p1, p0, p2}, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemGuildUnavailable;-><init>(Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;I)V
|
|
|
|
check-cast p1, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;
|
|
|
|
return-object p1
|
|
|
|
:cond_4
|
|
new-instance p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemGuild;
|
|
|
|
iget-boolean p2, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->horizontal:Z
|
|
|
|
if-eqz p2, :cond_5
|
|
|
|
const p2, 0x7f0d011f
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
const p2, 0x7f0d0124
|
|
|
|
:goto_2
|
|
iget-boolean v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->canAnimateIcons:Z
|
|
|
|
iget v1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->overlayColor:I
|
|
|
|
invoke-direct {p1, p0, p2, v0, v1}, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemGuild;-><init>(Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;IZI)V
|
|
|
|
check-cast p1, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;
|
|
|
|
return-object p1
|
|
|
|
:cond_6
|
|
new-instance p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemDirectMessage;
|
|
|
|
iget-boolean p2, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->horizontal:Z
|
|
|
|
if-eqz p2, :cond_7
|
|
|
|
const p2, 0x7f0d011c
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
const p2, 0x7f0d011d
|
|
|
|
:goto_3
|
|
invoke-direct {p1, p0, p2}, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemDirectMessage;-><init>(Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;I)V
|
|
|
|
check-cast p1, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;
|
|
|
|
return-object p1
|
|
|
|
:cond_8
|
|
new-instance p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemDivider;
|
|
|
|
iget-boolean p2, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->horizontal:Z
|
|
|
|
if-eqz p2, :cond_9
|
|
|
|
const p2, 0x7f0d011a
|
|
|
|
goto :goto_4
|
|
|
|
:cond_9
|
|
const p2, 0x7f0d0119
|
|
|
|
:goto_4
|
|
invoke-direct {p1, p0, p2}, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemDivider;-><init>(Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;I)V
|
|
|
|
check-cast p1, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;
|
|
|
|
return-object p1
|
|
|
|
:cond_a
|
|
new-instance p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemProfile;
|
|
|
|
iget-boolean p2, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->horizontal:Z
|
|
|
|
if-eqz p2, :cond_b
|
|
|
|
const p2, 0x7f0d0126
|
|
|
|
goto :goto_5
|
|
|
|
:cond_b
|
|
const p2, 0x7f0d0125
|
|
|
|
:goto_5
|
|
iget v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->overlayColor:I
|
|
|
|
invoke-direct {p1, p0, p2, v0}, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter$ItemProfile;-><init>(Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;II)V
|
|
|
|
check-cast p1, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final setOnClickListener(Lkotlin/jvm/functions/Function3;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/jvm/functions/Function3<",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"-",
|
|
"Lcom/discord/widgets/guilds/list/WidgetGuildsListModel$Item;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "<set-?>"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->onClickListener:Lkotlin/jvm/functions/Function3;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setOnLongClickListener(Lkotlin/jvm/functions/Function3;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/jvm/functions/Function3<",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"-",
|
|
"Lcom/discord/widgets/guilds/list/WidgetGuildsListModel$Item;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "<set-?>"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->onLongClickListener:Lkotlin/jvm/functions/Function3;
|
|
|
|
return-void
|
|
.end method
|