.class public final Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2; .super Lj0/o/c/i; .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 = { "Lj0/o/c/i;", "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 (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 invoke-direct {p0, p1}, Lj0/o/c/i;->(I)V 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 new-array v1, v1, [Lf/b/a/c/d$a; new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$1; const v3, 0x7f080331 const v4, 0x7f12024c invoke-direct {v2, v3, v4}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$1;->(II)V const/4 v3, 0x0 aput-object v2, v1, v3 new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$2; const v4, 0x7f0802dc const v5, 0x7f12024b invoke-direct {v2, v4, v5}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$2;->(II)V const/4 v4, 0x1 aput-object v2, v1, v4 new-instance v2, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$3; const v5, 0x7f080211 const v6, 0x7f12038a invoke-direct {v2, v5, v6}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2$1$3;->(II)V const/4 v5, 0x2 aput-object v2, v1, v5 iput-object v1, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->x:[Lf/b/a/c/d$a; iget-object v1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText; const/4 v2, 0x0 if-eqz v1, :cond_6 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 iget-object v4, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->h:Landroid/view/ViewGroup; if-eqz v4, :cond_5 new-instance v5, Lf/b/a/a/q; invoke-direct {v5, v0, v1}, Lf/b/a/a/q;->(Lcom/lytefast/flexinput/fragment/FlexInputFragment;Landroidx/appcompat/widget/AppCompatEditText;)V invoke-virtual {v4, v5}, Landroid/view/ViewGroup;->post(Ljava/lang/Runnable;)Z 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 if-eqz v1, :cond_4 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;->(Lcom/discord/widgets/chat/input/WidgetChatInputAttachments$configureFlexInputFragment$2;)V iput-object v1, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->t:Lf/b/a/d/a; 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 if-eqz v1, :cond_3 iget-object v4, v1, Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter;->a:Lcom/lytefast/flexinput/utils/SelectionAggregator; invoke-virtual {v0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->b()Lcom/lytefast/flexinput/utils/SelectionAggregator; move-result-object v5 invoke-virtual {v4, v5}, Lcom/lytefast/flexinput/utils/SelectionAggregator;->initFrom(Lcom/lytefast/flexinput/utils/SelectionAggregator;)Lcom/lytefast/flexinput/utils/SelectionAggregator; iput-object v1, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->w:Lcom/lytefast/flexinput/adapters/AttachmentPreviewAdapter; iget-object v4, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->k:Landroidx/recyclerview/widget/RecyclerView; if-eqz v4, :cond_2 invoke-virtual {v4, v1}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V 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 if-nez v1, :cond_0 goto :goto_0 :cond_0 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; if-eqz v0, :cond_1 invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V :goto_0 return-void :cond_1 const-string v0, "expressionBtn" invoke-static {v0}, Lj0/o/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V throw v2 :cond_2 const-string v0, "attachmentPreviewList" invoke-static {v0}, Lj0/o/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V throw v2 :cond_3 const-string v0, "previewAdapter" invoke-static {v0}, Lj0/o/c/h;->c(Ljava/lang/String;)V throw v2 :cond_4 const-string v0, "" invoke-static {v0}, Lj0/o/c/h;->c(Ljava/lang/String;)V throw v2 :cond_5 const-string v0, "inputContainer" invoke-static {v0}, Lj0/o/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V throw v2 :cond_6 const-string v0, "customEditText" invoke-static {v0}, Lj0/o/c/h;->c(Ljava/lang/String;)V throw v2 .end method