apkfuckery/com.discord/smali/com/discord/widgets/chat/input/sticker/WidgetStickerAdapter$1.smali

72 lines
2.0 KiB
Smali

.class public final Lcom/discord/widgets/chat/input/sticker/WidgetStickerAdapter$1;
.super Landroidx/recyclerview/widget/GridLayoutManager$SpanSizeLookup;
.source "WidgetStickerAdapter.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/widgets/chat/input/sticker/WidgetStickerAdapter;-><init>(Landroidx/recyclerview/widget/RecyclerView;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/discord/widgets/chat/input/sticker/WidgetStickerAdapter;
# direct methods
.method public constructor <init>(Lcom/discord/widgets/chat/input/sticker/WidgetStickerAdapter;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/discord/widgets/chat/input/sticker/WidgetStickerAdapter$1;->this$0:Lcom/discord/widgets/chat/input/sticker/WidgetStickerAdapter;
invoke-direct {p0}, Landroidx/recyclerview/widget/GridLayoutManager$SpanSizeLookup;-><init>()V
return-void
.end method
# virtual methods
.method public getSpanSize(I)I
.locals 1
iget-object v0, p0, Lcom/discord/widgets/chat/input/sticker/WidgetStickerAdapter$1;->this$0:Lcom/discord/widgets/chat/input/sticker/WidgetStickerAdapter;
invoke-virtual {v0, p1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->getItemViewType(I)I
move-result p1
if-eqz p1, :cond_0
const/4 v0, 0x2
if-eq p1, v0, :cond_0
const/4 v0, 0x3
if-eq p1, v0, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
iget-object p1, p0, Lcom/discord/widgets/chat/input/sticker/WidgetStickerAdapter$1;->this$0:Lcom/discord/widgets/chat/input/sticker/WidgetStickerAdapter;
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/sticker/WidgetStickerAdapter;->getNumColumns()I
move-result p1
:goto_0
return p1
.end method