2020-07-08 16:44:49 +00:00
|
|
|
.class public final Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;
|
2020-07-20 19:00:44 +00:00
|
|
|
.super Lj0/o/c/i;
|
2020-07-08 16:44:49 +00:00
|
|
|
.source "WidgetChatInputAttachments.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/jvm/functions/Function0;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->configureFlexInputFragment(Lcom/discord/app/AppFragment;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;)V
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-07-20 19:00:44 +00:00
|
|
|
"Lj0/o/c/i;",
|
2020-07-08 16:44:49 +00:00
|
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic $chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
|
|
|
|
|
|
|
|
.field public final synthetic $fragment:Lcom/discord/app/AppFragment;
|
|
|
|
|
|
|
|
.field public final synthetic this$0:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;Lcom/discord/app/AppFragment;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->this$0:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
|
|
|
|
|
|
|
|
iput-object p3, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->$fragment:Lcom/discord/app/AppFragment;
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-direct {p0, p1}, Lj0/o/c/i;-><init>(I)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public bridge synthetic invoke()Ljava/lang/Object;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->invoke()V
|
|
|
|
|
|
|
|
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final invoke()V
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->this$0:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->access$getFlexInputFragment$p(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;)Lcom/lytefast/flexinput/fragment/FlexInputFragment;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
new-array v1, v1, [Lf/b/a/c/d$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$1;
|
|
|
|
|
2020-07-21 23:05:34 +00:00
|
|
|
const v3, 0x7f080331
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
const v4, 0x7f12024c
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-direct {v2, v3, v4}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$1;-><init>(II)V
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$2;
|
|
|
|
|
2020-07-21 23:05:34 +00:00
|
|
|
const v4, 0x7f0802dc
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
const v5, 0x7f12024b
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-direct {v2, v4, v5}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$2;-><init>(II)V
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$3;
|
|
|
|
|
2020-07-21 23:05:34 +00:00
|
|
|
const v5, 0x7f080211
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
const v6, 0x7f12038a
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-direct {v2, v5, v6}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$3;-><init>(II)V
|
|
|
|
|
|
|
|
const/4 v5, 0x2
|
|
|
|
|
|
|
|
aput-object v2, v1, v5
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
iput-object v1, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->x:[Lf/b/a/c/d$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
if-eqz v1, :cond_6
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
sget v5, Lcom/lytefast/flexinput/R$e;->flex_input_text_input:I
|
|
|
|
|
|
|
|
invoke-virtual {v1, v5}, Landroid/widget/EditText;->setId(I)V
|
|
|
|
|
|
|
|
invoke-virtual {v1, v4}, Landroid/widget/EditText;->setFocusable(Z)V
|
|
|
|
|
|
|
|
invoke-virtual {v1, v4}, Landroid/widget/EditText;->setFocusableInTouchMode(Z)V
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
iget-object v4, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->h:Landroid/view/ViewGroup;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
if-eqz v4, :cond_5
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
new-instance v5, Lf/b/a/a/q;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-direct {v5, v0, v1}, Lf/b/a/a/q;-><init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;Landroidx/appcompat/widget/AppCompatEditText;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
invoke-virtual {v4, v5}, Landroid/view/ViewGroup;->post(Ljava/lang/Runnable;)Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->$fragment:Lcom/discord/app/AppFragment;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/app/AppFragment;->getFileManager()Lcom/lytefast/flexinput/managers/FileManager;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
if-eqz v1, :cond_4
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
iput-object v1, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->v:Lcom/lytefast/flexinput/managers/FileManager;
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$$special$$inlined$apply$lambda$1;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$$special$$inlined$apply$lambda$1;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;)V
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
iput-object v1, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->t:Lf/b/a/d/a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->this$0:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
|
|
|
|
|
|
|
|
invoke-static {v1}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->access$createPreviewAdapter(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;)Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
if-eqz v1, :cond_3
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
iget-object v4, v1, Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;->a:Lcom/lytefast/flexinput/utils/SelectionAggregator;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->b()Lcom/lytefast/flexinput/utils/SelectionAggregator;
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
move-result-object v5
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
invoke-virtual {v4, v5}, Lcom/lytefast/flexinput/utils/SelectionAggregator;->initFrom(Lcom/lytefast/flexinput/utils/SelectionAggregator;)Lcom/lytefast/flexinput/utils/SelectionAggregator;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
iput-object v1, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->w:Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
iget-object v4, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->k:Landroidx/recyclerview/widget/RecyclerView;
|
2020-07-16 18:51:06 +00:00
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
if-eqz v4, :cond_2
|
2020-07-16 18:51:06 +00:00
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
invoke-virtual {v4, v1}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->this$0:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;
|
|
|
|
|
|
|
|
invoke-static {v1}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->access$getChatInputFragmentManager$p(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;)Landroidx/fragment/app/FragmentManager;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
iget-object v5, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
|
|
|
|
|
|
|
|
invoke-static {v1, v4, v5}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->access$createAndConfigureExpressionFragment(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;Landroidx/fragment/app/FragmentManager;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;)Landroidx/fragment/app/Fragment;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
if-nez v1, :cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
goto :goto_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
:cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
sget v5, Lcom/lytefast/flexinput/R$e;->flex_input_expression_tray_container:I
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v4, v5, v1, v6}, Landroidx/fragment/app/FragmentTransaction;->replace(ILandroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/fragment/app/FragmentTransaction;->commit()I
|
|
|
|
|
|
|
|
iget-object v0, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->m:Landroid/widget/ImageView;
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
if-eqz v0, :cond_1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
:goto_0
|
2020-07-08 16:44:49 +00:00
|
|
|
return-void
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
:cond_1
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v0, "expressionBtn"
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {v0}, Lj0/o/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-07-16 18:51:06 +00:00
|
|
|
|
|
|
|
throw v2
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
:cond_2
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v0, "attachmentPreviewList"
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {v0}, Lj0/o/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw v2
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
:cond_3
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v0, "previewAdapter"
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {v0}, Lj0/o/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw v2
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
:cond_4
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v0, "<set-?>"
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {v0}, Lj0/o/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw v2
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
:cond_5
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v0, "inputContainer"
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {v0}, Lj0/o/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw v2
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
:cond_6
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v0, "customEditText"
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {v0}, Lj0/o/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw v2
|
|
|
|
.end method
|