2020-07-22 00:04:40 +00:00
|
|
|
.class public final Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2$StickyHeadersManager;
|
2020-07-08 16:44:49 +00:00
|
|
|
.super Ljava/lang/Object;
|
2020-07-22 00:04:40 +00:00
|
|
|
.source "WidgetEmojiAdapterV2.kt"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2020-07-22 00:04:40 +00:00
|
|
|
value = Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2;
|
2020-07-08 16:44:49 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "StickyHeadersManager"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final currentStickyHeaderView:Landroid/view/View;
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
.field public final stickyHeaderHolder:Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2$HeaderViewHolder;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-22 00:04:40 +00:00
|
|
|
.method public constructor <init>(Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
new-instance v0, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2$HeaderViewHolder;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-direct {v0, p1}, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2$HeaderViewHolder;-><init>(Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
iput-object v0, p0, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2$StickyHeadersManager;->stickyHeaderHolder:Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2$HeaderViewHolder;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
iget-object p1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2$StickyHeadersManager;->currentStickyHeaderView:Landroid/view/View;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "adapter"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final getCurrentStickyHeaderView()Landroid/view/View;
|
|
|
|
.locals 1
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2$StickyHeadersManager;->currentStickyHeaderView:Landroid/view/View;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
.method public final getStickyHeaderHolder()Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2$HeaderViewHolder;
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2$StickyHeadersManager;->stickyHeaderHolder:Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2$HeaderViewHolder;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final layoutViews(Landroidx/recyclerview/widget/RecyclerView;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapterV2$StickyHeadersManager;->currentStickyHeaderView:Landroid/view/View;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/utilities/views/StickyHeaderItemDecoration$LayoutManager;->INSTANCE:Lcom/discord/utilities/views/StickyHeaderItemDecoration$LayoutManager;
|
|
|
|
|
|
|
|
invoke-virtual {v1, p1, v0}, Lcom/discord/utilities/views/StickyHeaderItemDecoration$LayoutManager;->layoutHeaderView(Landroid/view/ViewGroup;Landroid/view/View;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "recyclerView"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|