.class public final Lcom/discord/widgets/chat/input/WidgetChatInput; .super Lcom/discord/app/AppFragment; .source "WidgetChatInput.kt" # interfaces .implements Lcom/discord/widgets/chat/input/WidgetChatInputSend$Listener; # static fields .field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty; # instance fields .field public chatAttachments:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments; .field public final chatGuard$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final chatGuardAction$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final chatGuardActionSecondary$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final chatGuardSubtext$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final chatGuardText$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final chatInputEdit$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final chatInputEditCancel$delegate:Lkotlin/properties/ReadOnlyProperty; .field public chatInputEditTextHolder:Lcom/discord/widgets/chat/input/WidgetChatInputEditText; .field public final chatInputMentionsRecycler$delegate:Lkotlin/properties/ReadOnlyProperty; .field public chatInputTruncatedHint:Lcom/discord/widgets/chat/input/WidgetChatInputTruncatedHint; .field public final chatInputWidget$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final chatInputWrap$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final container$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final flexInputFragment$delegate:Lkotlin/Lazy; .field public flexInputViewModel:Lcom/discord/widgets/chat/input/AppFlexInputViewModel; .field public final inlineVoiceVisibilityObserver:Lcom/discord/utilities/views/ViewVisibilityObserver; .field public final tooltipManager:Lcom/discord/tooltips/TooltipManager; .field public wasEditing:Z # direct methods .method public static constructor ()V .locals 5 const/16 v0, 0xb new-array v0, v0, [Lkotlin/reflect/KProperty; const-class v1, Lcom/discord/widgets/chat/input/WidgetChatInput; const-string v2, "container" const-string v3, "getContainer()Landroid/view/ViewGroup;" const/4 v4, 0x0 invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 aput-object v1, v0, v4 const-class v1, Lcom/discord/widgets/chat/input/WidgetChatInput; const-string v2, "chatInputWrap" const-string v3, "getChatInputWrap()Landroid/view/ViewGroup;" invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 const/4 v2, 0x1 aput-object v1, v0, v2 const-class v1, Lcom/discord/widgets/chat/input/WidgetChatInput; const-string v2, "chatInputWidget" const-string v3, "getChatInputWidget()Landroid/view/ViewGroup;" invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 const/4 v2, 0x2 aput-object v1, v0, v2 const-class v1, Lcom/discord/widgets/chat/input/WidgetChatInput; const-string v2, "chatInputMentionsRecycler" const-string v3, "getChatInputMentionsRecycler()Landroidx/recyclerview/widget/RecyclerView;" invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 const/4 v2, 0x3 aput-object v1, v0, v2 const-class v1, Lcom/discord/widgets/chat/input/WidgetChatInput; const-string v2, "chatInputEdit" const-string v3, "getChatInputEdit()Landroid/view/View;" invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 const/4 v2, 0x4 aput-object v1, v0, v2 const-class v1, Lcom/discord/widgets/chat/input/WidgetChatInput; const-string v2, "chatInputEditCancel" const-string v3, "getChatInputEditCancel()Landroid/view/View;" invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 const/4 v2, 0x5 aput-object v1, v0, v2 const-class v1, Lcom/discord/widgets/chat/input/WidgetChatInput; const-string v2, "chatGuard" const-string v3, "getChatGuard()Landroid/view/View;" invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 const/4 v2, 0x6 aput-object v1, v0, v2 const-class v1, Lcom/discord/widgets/chat/input/WidgetChatInput; const-string v2, "chatGuardText" const-string v3, "getChatGuardText()Landroid/widget/TextView;" invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 const/4 v2, 0x7 aput-object v1, v0, v2 const-class v1, Lcom/discord/widgets/chat/input/WidgetChatInput; const-string v2, "chatGuardSubtext" const-string v3, "getChatGuardSubtext()Landroid/widget/TextView;" invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 const/16 v2, 0x8 aput-object v1, v0, v2 const-class v1, Lcom/discord/widgets/chat/input/WidgetChatInput; const-string v2, "chatGuardAction" const-string v3, "getChatGuardAction()Landroid/widget/TextView;" invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 const/16 v2, 0x9 aput-object v1, v0, v2 const-class v1, Lcom/discord/widgets/chat/input/WidgetChatInput; const-string v2, "chatGuardActionSecondary" const-string v3, "getChatGuardActionSecondary()Landroid/widget/TextView;" invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 const/16 v2, 0xa aput-object v1, v0, v2 sput-object v0, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty; return-void .end method .method public constructor ()V .locals 9 invoke-direct {p0}, Lcom/discord/app/AppFragment;->()V const v0, 0x7f0a0201 invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->container$delegate:Lkotlin/properties/ReadOnlyProperty; const v0, 0x7f0a021c invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputWrap$delegate:Lkotlin/properties/ReadOnlyProperty; const v0, 0x7f0a021b invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputWidget$delegate:Lkotlin/properties/ReadOnlyProperty; const v0, 0x7f0a0212 invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputMentionsRecycler$delegate:Lkotlin/properties/ReadOnlyProperty; const v0, 0x7f0a0202 invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputEdit$delegate:Lkotlin/properties/ReadOnlyProperty; const v0, 0x7f0a0204 invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputEditCancel$delegate:Lkotlin/properties/ReadOnlyProperty; const v0, 0x7f0a0207 invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuard$delegate:Lkotlin/properties/ReadOnlyProperty; const v0, 0x7f0a020b invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardText$delegate:Lkotlin/properties/ReadOnlyProperty; const v0, 0x7f0a020a invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardSubtext$delegate:Lkotlin/properties/ReadOnlyProperty; const v0, 0x7f0a0208 invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardAction$delegate:Lkotlin/properties/ReadOnlyProperty; const v0, 0x7f0a0209 invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardActionSecondary$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v0, Lcom/discord/utilities/views/ViewVisibilityObserverProvider;->INSTANCE:Lcom/discord/utilities/views/ViewVisibilityObserverProvider; const-string v1, "INLINE_VOICE_FEATURE" invoke-virtual {v0, v1}, Lcom/discord/utilities/views/ViewVisibilityObserverProvider;->get(Ljava/lang/String;)Lcom/discord/utilities/views/ViewVisibilityObserver; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->inlineVoiceVisibilityObserver:Lcom/discord/utilities/views/ViewVisibilityObserver; new-instance v0, Lcom/discord/widgets/chat/input/WidgetChatInput$flexInputFragment$2; invoke-direct {v0, p0}, Lcom/discord/widgets/chat/input/WidgetChatInput$flexInputFragment$2;->(Lcom/discord/widgets/chat/input/WidgetChatInput;)V invoke-static {v0}, Lf/h/a/f/e/n/f;->lazy(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->flexInputFragment$delegate:Lkotlin/Lazy; sget-object v0, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog; const-string v1, "logger" invoke-static {v0, v1}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V sget-object v1, Lf/a/c/a$b;->a:Ljava/lang/ref/WeakReference; const/4 v2, 0x0 if-eqz v1, :cond_0 invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object; move-result-object v1 check-cast v1, Lf/a/c/a; goto :goto_0 :cond_0 move-object v1, v2 :goto_0 if-nez v1, :cond_1 new-instance v1, Lf/a/c/a; invoke-direct {v1, v0}, Lf/a/c/a;->(Lcom/discord/utilities/logging/Logger;)V new-instance v0, Ljava/lang/ref/WeakReference; invoke-direct {v0, v1}, Ljava/lang/ref/WeakReference;->(Ljava/lang/Object;)V sput-object v0, Lf/a/c/a$b;->a:Ljava/lang/ref/WeakReference; :cond_1 move-object v7, v1 sget-object v0, Lcom/discord/tooltips/TooltipManager$a;->d:Lcom/discord/tooltips/TooltipManager$a; const-string v0, "floatingViewManager" invoke-static {v7, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V sget-object v0, Lcom/discord/tooltips/TooltipManager$a;->a:Ljava/lang/ref/WeakReference; if-eqz v0, :cond_2 invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object; move-result-object v0 move-object v2, v0 check-cast v2, Lcom/discord/tooltips/TooltipManager; :cond_2 if-nez v2, :cond_3 new-instance v2, Lcom/discord/tooltips/TooltipManager; sget-object v0, Lcom/discord/tooltips/TooltipManager$a;->b:Lkotlin/Lazy; invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object; move-result-object v0 move-object v4, v0 check-cast v4, Lf/a/l/a; sget-object v0, Lcom/discord/tooltips/TooltipManager$a;->c:Lkotlin/Lazy; invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object; move-result-object v0 move-object v5, v0 check-cast v5, Ljava/util/Set; const/4 v6, 0x0 const/4 v8, 0x4 move-object v3, v2 invoke-direct/range {v3 .. v8}, Lcom/discord/tooltips/TooltipManager;->(Lf/a/l/a;Ljava/util/Set;ILf/a/c/a;I)V new-instance v0, Ljava/lang/ref/WeakReference; invoke-direct {v0, v2}, Ljava/lang/ref/WeakReference;->(Ljava/lang/Object;)V sput-object v0, Lcom/discord/tooltips/TooltipManager$a;->a:Ljava/lang/ref/WeakReference; :cond_3 iput-object v2, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->tooltipManager:Lcom/discord/tooltips/TooltipManager; return-void .end method .method public static final synthetic access$configureUI(Lcom/discord/widgets/chat/input/WidgetChatInput;Lcom/discord/widgets/chat/input/WidgetChatInputModel;)V .locals 0 invoke-direct {p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInput;->configureUI(Lcom/discord/widgets/chat/input/WidgetChatInputModel;)V return-void .end method .method public static final synthetic access$getChatGuard$p(Lcom/discord/widgets/chat/input/WidgetChatInput;)Landroid/view/View; .locals 0 invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuard()Landroid/view/View; move-result-object p0 return-object p0 .end method .method public static final synthetic access$getChatInputEditTextHolder$p(Lcom/discord/widgets/chat/input/WidgetChatInput;)Lcom/discord/widgets/chat/input/WidgetChatInputEditText; .locals 0 iget-object p0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputEditTextHolder:Lcom/discord/widgets/chat/input/WidgetChatInputEditText; return-object p0 .end method .method public static final synthetic access$getChatInputMentionsRecycler$p(Lcom/discord/widgets/chat/input/WidgetChatInput;)Landroidx/recyclerview/widget/RecyclerView; .locals 0 invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputMentionsRecycler()Landroidx/recyclerview/widget/RecyclerView; move-result-object p0 return-object p0 .end method .method public static final synthetic access$getChatInputTruncatedHint$p(Lcom/discord/widgets/chat/input/WidgetChatInput;)Lcom/discord/widgets/chat/input/WidgetChatInputTruncatedHint; .locals 0 iget-object p0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputTruncatedHint:Lcom/discord/widgets/chat/input/WidgetChatInputTruncatedHint; return-object p0 .end method .method public static final synthetic access$getChatInputWrap$p(Lcom/discord/widgets/chat/input/WidgetChatInput;)Landroid/view/ViewGroup; .locals 0 invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputWrap()Landroid/view/ViewGroup; move-result-object p0 return-object p0 .end method .method public static final synthetic access$getContainer$p(Lcom/discord/widgets/chat/input/WidgetChatInput;)Landroid/view/ViewGroup; .locals 0 invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getContainer()Landroid/view/ViewGroup; move-result-object p0 return-object p0 .end method .method public static final synthetic access$getFlexInputFragment$p(Lcom/discord/widgets/chat/input/WidgetChatInput;)Lcom/lytefast/flexinput/fragment/FlexInputFragment; .locals 0 invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getFlexInputFragment()Lcom/lytefast/flexinput/fragment/FlexInputFragment; move-result-object p0 return-object p0 .end method .method public static final synthetic access$getTooltipManager$p(Lcom/discord/widgets/chat/input/WidgetChatInput;)Lcom/discord/tooltips/TooltipManager; .locals 0 iget-object p0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->tooltipManager:Lcom/discord/tooltips/TooltipManager; return-object p0 .end method .method public static final synthetic access$setChatInputEditTextHolder$p(Lcom/discord/widgets/chat/input/WidgetChatInput;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;)V .locals 0 iput-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputEditTextHolder:Lcom/discord/widgets/chat/input/WidgetChatInputEditText; return-void .end method .method public static final synthetic access$setChatInputTruncatedHint$p(Lcom/discord/widgets/chat/input/WidgetChatInput;Lcom/discord/widgets/chat/input/WidgetChatInputTruncatedHint;)V .locals 0 iput-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputTruncatedHint:Lcom/discord/widgets/chat/input/WidgetChatInputTruncatedHint; return-void .end method .method public static final synthetic access$setWindowInsetsListeners(Lcom/discord/widgets/chat/input/WidgetChatInput;Z)V .locals 0 invoke-direct {p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInput;->setWindowInsetsListeners(Z)V return-void .end method .method public static final synthetic access$showFollowSheet(Lcom/discord/widgets/chat/input/WidgetChatInput;JJ)V .locals 0 invoke-direct {p0, p1, p2, p3, p4}, Lcom/discord/widgets/chat/input/WidgetChatInput;->showFollowSheet(JJ)V return-void .end method .method private final configureUI(Lcom/discord/widgets/chat/input/WidgetChatInputModel;)V .locals 12 invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputWrap()Landroid/view/ViewGroup; move-result-object v0 const/4 v1, 0x0 if-eqz p1, :cond_0 invoke-virtual {p1}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isInputShowing()Z move-result v2 goto :goto_0 :cond_0 const/4 v2, 0x0 :goto_0 const/16 v3, 0x8 if-eqz v2, :cond_1 const/4 v2, 0x0 goto :goto_1 :cond_1 const/16 v2, 0x8 :goto_1 invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuard()Landroid/view/View; move-result-object v0 const/4 v2, 0x1 if-eqz p1, :cond_2 iget-boolean v4, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isLurking:Z if-eq v4, v2, :cond_6 :cond_2 if-eqz p1, :cond_3 invoke-virtual {p1}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isVerificationLevelTriggered()Z move-result v4 if-eq v4, v2, :cond_6 :cond_3 if-eqz p1, :cond_4 iget-boolean v4, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isSystemDM:Z if-eq v4, v2, :cond_6 :cond_4 if-eqz p1, :cond_5 iget-boolean v4, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->shouldShowFollow:Z if-ne v4, v2, :cond_5 goto :goto_2 :cond_5 const/4 v2, 0x0 :cond_6 :goto_2 if-eqz v2, :cond_7 const/4 v2, 0x0 goto :goto_3 :cond_7 const/16 v2, 0x8 :goto_3 invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V const-string v0, "flexInputViewModel" const/4 v2, 0x0 if-eqz p1, :cond_9 iget-boolean v4, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->wasEditing:Z if-nez v4, :cond_9 invoke-virtual {p1}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isEditing()Z move-result v4 if-eqz v4, :cond_9 iget-object v4, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->flexInputViewModel:Lcom/discord/widgets/chat/input/AppFlexInputViewModel; if-eqz v4, :cond_8 invoke-virtual {v4}, Lcom/discord/widgets/chat/input/AppFlexInputViewModel;->hideExpressionTray()Z goto :goto_4 :cond_8 invoke-static {v0}, Lc0/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V throw v2 :cond_9 :goto_4 if-eqz p1, :cond_a invoke-virtual {p1}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isEditing()Z move-result v1 :cond_a iput-boolean v1, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->wasEditing:Z if-nez p1, :cond_b return-void :cond_b iget-boolean v1, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isSystemDM:Z if-eqz v1, :cond_c invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardText()Landroid/widget/TextView; move-result-object v1 const v4, 0x7f121641 invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(I)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardSubtext()Landroid/widget/TextView; move-result-object v1 const v4, 0x7f121642 invoke-virtual {p0, v4}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String; move-result-object v4 invoke-static {v1, v4}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView; move-result-object v1 invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardActionSecondary()Landroid/widget/TextView; move-result-object v1 invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V goto/16 :goto_5 :cond_c iget-boolean v1, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isLurking:Z const v4, 0x7f120868 const v5, 0x7f1206e6 if-eqz v1, :cond_e new-instance v1, Lcom/discord/widgets/chat/input/WidgetChatInput$configureUI$lurkGuild$1; invoke-direct {v1, p1}, Lcom/discord/widgets/chat/input/WidgetChatInput$configureUI$lurkGuild$1;->(Lcom/discord/widgets/chat/input/WidgetChatInputModel;)V iget-boolean v6, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->shouldShowFollow:Z const v7, 0x7f120ece if-eqz v6, :cond_d invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardText()Landroid/widget/TextView; move-result-object v3 invoke-virtual {v3, v5}, Landroid/widget/TextView;->setText(I)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView; move-result-object v3 invoke-virtual {p0, v4}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String; move-result-object v4 invoke-static {v3, v4}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView; move-result-object v3 new-instance v4, Lcom/discord/widgets/chat/input/WidgetChatInput$configureUI$1; invoke-direct {v4, p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInput$configureUI$1;->(Lcom/discord/widgets/chat/input/WidgetChatInput;Lcom/discord/widgets/chat/input/WidgetChatInputModel;)V invoke-virtual {v3, v4}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardActionSecondary()Landroid/widget/TextView; move-result-object v3 invoke-virtual {p0, v7}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String; move-result-object v4 invoke-static {v3, v4}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardActionSecondary()Landroid/widget/TextView; move-result-object v3 new-instance v4, Lcom/discord/widgets/chat/input/WidgetChatInput$sam$android_view_View_OnClickListener$0; invoke-direct {v4, v1}, Lcom/discord/widgets/chat/input/WidgetChatInput$sam$android_view_View_OnClickListener$0;->(Lkotlin/jvm/functions/Function1;)V invoke-virtual {v3, v4}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V goto/16 :goto_5 :cond_d invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardText()Landroid/widget/TextView; move-result-object v4 const v5, 0x7f120ecf invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(I)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView; move-result-object v4 invoke-virtual {p0, v7}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String; move-result-object v5 invoke-static {v4, v5}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView; move-result-object v4 new-instance v5, Lcom/discord/widgets/chat/input/WidgetChatInput$sam$android_view_View_OnClickListener$0; invoke-direct {v5, v1}, Lcom/discord/widgets/chat/input/WidgetChatInput$sam$android_view_View_OnClickListener$0;->(Lkotlin/jvm/functions/Function1;)V invoke-virtual {v4, v5}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardActionSecondary()Landroid/widget/TextView; move-result-object v1 invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V goto :goto_5 :cond_e iget-boolean v1, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->shouldShowFollow:Z if-eqz v1, :cond_f invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardText()Landroid/widget/TextView; move-result-object v1 invoke-virtual {v1, v5}, Landroid/widget/TextView;->setText(I)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView; move-result-object v1 invoke-virtual {p0, v4}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String; move-result-object v4 invoke-static {v1, v4}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView; move-result-object v1 new-instance v4, Lcom/discord/widgets/chat/input/WidgetChatInput$configureUI$2; invoke-direct {v4, p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInput$configureUI$2;->(Lcom/discord/widgets/chat/input/WidgetChatInput;Lcom/discord/widgets/chat/input/WidgetChatInputModel;)V invoke-virtual {v1, v4}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardActionSecondary()Landroid/widget/TextView; move-result-object v1 invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V goto :goto_5 :cond_f invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardText()Landroid/widget/TextView; move-result-object v1 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context; move-result-object v4 invoke-virtual {p1, v4}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->getVerificationText(Landroid/content/Context;)Ljava/lang/String; move-result-object v4 invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView; move-result-object v1 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context; move-result-object v4 invoke-virtual {p1, v4}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->getVerificationActionText(Landroid/content/Context;)Ljava/lang/String; move-result-object v4 invoke-static {v1, v4}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardAction()Landroid/widget/TextView; move-result-object v1 invoke-virtual {p1}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->getVerificationAction()Landroid/view/View$OnClickListener; move-result-object v4 invoke-virtual {v1, v4}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuardActionSecondary()Landroid/widget/TextView; move-result-object v1 invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V :goto_5 iget-object v1, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputTruncatedHint:Lcom/discord/widgets/chat/input/WidgetChatInputTruncatedHint; if-eqz v1, :cond_10 iget-object v3, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->inputHint:Ljava/lang/String; const-string v4, "model.inputHint" invoke-static {v3, v4}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v1, v3}, Lcom/discord/widgets/chat/input/WidgetChatInputTruncatedHint;->setHint(Ljava/lang/CharSequence;)V :cond_10 iget-object v5, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputEditTextHolder:Lcom/discord/widgets/chat/input/WidgetChatInputEditText; iget-object v6, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatAttachments:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments; if-eqz v6, :cond_13 invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputEdit()Landroid/view/View; move-result-object v7 invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputEditCancel()Landroid/view/View; move-result-object v8 iget-object v11, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->flexInputViewModel:Lcom/discord/widgets/chat/input/AppFlexInputViewModel; if-eqz v11, :cond_12 move-object v9, p1 move-object v10, p0 invoke-static/range {v5 .. v11}, Lcom/discord/widgets/chat/input/WidgetChatInputSend;->configureSendListeners(Lcom/discord/widgets/chat/input/WidgetChatInputEditText;Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;Landroid/view/View;Landroid/view/View;Lcom/discord/widgets/chat/input/WidgetChatInputModel;Lcom/discord/widgets/chat/input/WidgetChatInputSend$Listener;Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;)V iget-boolean v0, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->ableToSendMessage:Z if-eqz v0, :cond_11 iget-boolean p1, p1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->canShowStickerPickerNfx:Z if-eqz p1, :cond_11 sget-object p1, Lcom/discord/widgets/chat/input/expression/ExpressionPickerSparkleTooltip;->INSTANCE:Lcom/discord/widgets/chat/input/expression/ExpressionPickerSparkleTooltip; invoke-direct {p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInput;->showExpressionButtonSparkle(Lcom/discord/tooltips/TooltipManager$Tooltip;)V goto :goto_6 :cond_11 iget-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->tooltipManager:Lcom/discord/tooltips/TooltipManager; sget-object v0, Lcom/discord/widgets/chat/input/expression/ExpressionPickerSparkleTooltip;->INSTANCE:Lcom/discord/widgets/chat/input/expression/ExpressionPickerSparkleTooltip; invoke-virtual {p1, v0}, Lcom/discord/tooltips/TooltipManager;->c(Lcom/discord/tooltips/TooltipManager$Tooltip;)V :goto_6 return-void :cond_12 invoke-static {v0}, Lc0/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V throw v2 :cond_13 const-string p1, "chatAttachments" invoke-static {p1}, Lc0/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V throw v2 .end method .method private final getChatGuard()Landroid/view/View; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuard$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty; const/4 v2, 0x6 aget-object v1, v1, v2 invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/view/View; return-object v0 .end method .method private final getChatGuardAction()Landroid/widget/TextView; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardAction$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty; const/16 v2, 0x9 aget-object v1, v1, v2 invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/widget/TextView; return-object v0 .end method .method private final getChatGuardActionSecondary()Landroid/widget/TextView; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardActionSecondary$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty; const/16 v2, 0xa aget-object v1, v1, v2 invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/widget/TextView; return-object v0 .end method .method private final getChatGuardSubtext()Landroid/widget/TextView; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardSubtext$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty; const/16 v2, 0x8 aget-object v1, v1, v2 invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/widget/TextView; return-object v0 .end method .method private final getChatGuardText()Landroid/widget/TextView; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatGuardText$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty; const/4 v2, 0x7 aget-object v1, v1, v2 invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/widget/TextView; return-object v0 .end method .method private final getChatInputEdit()Landroid/view/View; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputEdit$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty; const/4 v2, 0x4 aget-object v1, v1, v2 invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/view/View; return-object v0 .end method .method private final getChatInputEditCancel()Landroid/view/View; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputEditCancel$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty; const/4 v2, 0x5 aget-object v1, v1, v2 invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/view/View; return-object v0 .end method .method private final getChatInputMentionsRecycler()Landroidx/recyclerview/widget/RecyclerView; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputMentionsRecycler$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty; const/4 v2, 0x3 aget-object v1, v1, v2 invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroidx/recyclerview/widget/RecyclerView; return-object v0 .end method .method private final getChatInputWidget()Landroid/view/ViewGroup; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputWidget$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty; const/4 v2, 0x2 aget-object v1, v1, v2 invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/view/ViewGroup; return-object v0 .end method .method private final getChatInputWrap()Landroid/view/ViewGroup; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputWrap$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty; const/4 v2, 0x1 aget-object v1, v1, v2 invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/view/ViewGroup; return-object v0 .end method .method private final getContainer()Landroid/view/ViewGroup; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->container$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput;->$$delegatedProperties:[Lkotlin/reflect/KProperty; const/4 v2, 0x0 aget-object v1, v1, v2 invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/view/ViewGroup; return-object v0 .end method .method private final getFlexInputFragment()Lcom/lytefast/flexinput/fragment/FlexInputFragment; .locals 1 iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->flexInputFragment$delegate:Lkotlin/Lazy; invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment; return-object v0 .end method .method private final populateDirectShareData()V .locals 5 sget-object v0, Lcom/discord/utilities/intent/IntentUtils;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils; invoke-virtual {p0}, Lcom/discord/app/AppFragment;->getMostRecentIntent()Landroid/content/Intent; move-result-object v1 invoke-virtual {v0, v1}, Lcom/discord/utilities/intent/IntentUtils;->getDirectShareId(Landroid/content/Intent;)Ljava/lang/Long; move-result-object v0 if-eqz v0, :cond_4 invoke-virtual {v0}, Ljava/lang/Number;->longValue()J move-result-wide v0 sget-object v2, Lcom/discord/utilities/ShareUtils;->INSTANCE:Lcom/discord/utilities/ShareUtils; invoke-virtual {p0}, Lcom/discord/app/AppFragment;->getMostRecentIntent()Landroid/content/Intent; move-result-object v3 const/4 v4, 0x1 invoke-virtual {v2, v3, v4}, Lcom/discord/utilities/ShareUtils;->getSharedContent(Landroid/content/Intent;Z)Lcom/discord/utilities/ShareUtils$SharedContent; move-result-object v2 invoke-virtual {v2}, Lcom/discord/utilities/ShareUtils$SharedContent;->getText()Ljava/lang/CharSequence; move-result-object v3 if-eqz v3, :cond_1 invoke-static {v3}, Lc0/t/k;->isBlank(Ljava/lang/CharSequence;)Z move-result v3 if-eqz v3, :cond_0 goto :goto_0 :cond_0 const/4 v4, 0x0 :cond_1 :goto_0 if-nez v4, :cond_2 sget-object v3, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion; invoke-virtual {v3}, Lcom/discord/stores/StoreStream$Companion;->getChat()Lcom/discord/stores/StoreChat; move-result-object v3 invoke-virtual {v2}, Lcom/discord/utilities/ShareUtils$SharedContent;->getText()Ljava/lang/CharSequence; move-result-object v4 invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v4 invoke-virtual {v3, v0, v1, v4}, Lcom/discord/stores/StoreChat;->setTextChannelInput(JLjava/lang/CharSequence;)V :cond_2 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context; move-result-object v0 if-eqz v0, :cond_4 invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; move-result-object v0 if-eqz v0, :cond_4 invoke-virtual {v2}, Lcom/discord/utilities/ShareUtils$SharedContent;->getUris()Ljava/util/List; move-result-object v1 if-eqz v1, :cond_4 invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object v1 :goto_1 invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_4 invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 check-cast v2, Landroid/net/Uri; iget-object v3, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatAttachments:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments; if-eqz v3, :cond_3 sget-object v4, Lcom/lytefast/flexinput/model/Attachment;->Companion:Lcom/lytefast/flexinput/model/Attachment$Companion; invoke-virtual {v4, v2, v0}, Lcom/lytefast/flexinput/model/Attachment$Companion;->a(Landroid/net/Uri;Landroid/content/ContentResolver;)Lcom/lytefast/flexinput/model/Attachment; move-result-object v2 invoke-virtual {v3, v2}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->addExternalAttachment(Lcom/lytefast/flexinput/model/Attachment;)V goto :goto_1 :cond_3 const-string v0, "chatAttachments" invoke-static {v0}, Lc0/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V const/4 v0, 0x0 throw v0 :cond_4 return-void .end method .method private final setWindowInsetsListeners(Z)V .locals 2 invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputWrap()Landroid/view/ViewGroup; move-result-object v0 invoke-static {v0}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setForwardingWindowInsetsListener(Landroid/view/ViewGroup;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputWidget()Landroid/view/ViewGroup; move-result-object v0 invoke-static {v0}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setForwardingWindowInsetsListener(Landroid/view/ViewGroup;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatGuard()Landroid/view/View; move-result-object v0 sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInput$setWindowInsetsListeners$1;->INSTANCE:Lcom/discord/widgets/chat/input/WidgetChatInput$setWindowInsetsListeners$1; invoke-static {v0, v1}, Landroidx/core/view/ViewCompat;->setOnApplyWindowInsetsListener(Landroid/view/View;Landroidx/core/view/OnApplyWindowInsetsListener;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getContainer()Landroid/view/ViewGroup; move-result-object v0 new-instance v1, Lcom/discord/widgets/chat/input/WidgetChatInput$setWindowInsetsListeners$2; invoke-direct {v1, p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInput$setWindowInsetsListeners$2;->(Lcom/discord/widgets/chat/input/WidgetChatInput;Z)V invoke-static {v0, v1}, Landroidx/core/view/ViewCompat;->setOnApplyWindowInsetsListener(Landroid/view/View;Landroidx/core/view/OnApplyWindowInsetsListener;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getContainer()Landroid/view/ViewGroup; move-result-object p1 invoke-virtual {p1}, Landroid/view/ViewGroup;->requestApplyInsets()V return-void .end method .method public static synthetic setWindowInsetsListeners$default(Lcom/discord/widgets/chat/input/WidgetChatInput;ZILjava/lang/Object;)V .locals 0 const/4 p3, 0x1 and-int/2addr p2, p3 if-eqz p2, :cond_0 const/4 p1, 0x1 :cond_0 invoke-direct {p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInput;->setWindowInsetsListeners(Z)V return-void .end method .method private final showExpressionButtonSparkle(Lcom/discord/tooltips/TooltipManager$Tooltip;)V .locals 2 invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getFlexInputFragment()Lcom/lytefast/flexinput/fragment/FlexInputFragment; move-result-object v0 new-instance v1, Lcom/discord/widgets/chat/input/WidgetChatInput$showExpressionButtonSparkle$1; invoke-direct {v1, p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInput$showExpressionButtonSparkle$1;->(Lcom/discord/widgets/chat/input/WidgetChatInput;Lcom/discord/tooltips/TooltipManager$Tooltip;)V invoke-virtual {v0, v1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->n(Lkotlin/jvm/functions/Function0;)V return-void .end method .method private final showFollowSheet(JJ)V .locals 6 sget-object v0, Lcom/discord/widgets/announcements/WidgetChannelFollowSheet;->Companion:Lcom/discord/widgets/announcements/WidgetChannelFollowSheet$Companion; invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager; move-result-object v1 const-string v2, "parentFragmentManager" invoke-static {v1, v2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V move-wide v2, p1 move-wide v4, p3 invoke-virtual/range {v0 .. v5}, Lcom/discord/widgets/announcements/WidgetChannelFollowSheet$Companion;->show(Landroidx/fragment/app/FragmentManager;JJ)V return-void .end method # virtual methods .method public getContentViewResId()I .locals 1 const v0, 0x7f0d019c return v0 .end method .method public onCreate(Landroid/os/Bundle;)V .locals 2 invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onCreate(Landroid/os/Bundle;)V new-instance p1, Landroidx/lifecycle/ViewModelProvider; invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity; move-result-object v0 new-instance v1, Lcom/discord/widgets/chat/input/AppFlexInputViewModel$FlexInputViewModelFactory; invoke-direct {v1}, Lcom/discord/widgets/chat/input/AppFlexInputViewModel$FlexInputViewModelFactory;->()V invoke-direct {p1, v0, v1}, Landroidx/lifecycle/ViewModelProvider;->(Landroidx/lifecycle/ViewModelStoreOwner;Landroidx/lifecycle/ViewModelProvider$Factory;)V const-class v0, Lcom/discord/widgets/chat/input/AppFlexInputViewModel; invoke-virtual {p1, v0}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel; move-result-object p1 const-string v0, "ViewModelProvider(\n \u2026putViewModel::class.java)" invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V check-cast p1, Lcom/discord/widgets/chat/input/AppFlexInputViewModel; iput-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->flexInputViewModel:Lcom/discord/widgets/chat/input/AppFlexInputViewModel; return-void .end method .method public onDestroyView()V .locals 3 invoke-static {}, Lf/a/f/b$b;->a()Lf/a/f/b; move-result-object v0 invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputWrap()Landroid/view/ViewGroup; move-result-object v1 invoke-virtual {v1}, Landroid/view/ViewGroup;->getId()I move-result v1 iget-object v2, v0, Lf/a/f/b;->d:Ljava/util/Map; invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 invoke-interface {v2, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object; invoke-virtual {v0}, Lf/a/f/b;->a()V invoke-super {p0}, Lcom/discord/app/AppFragment;->onDestroyView()V return-void .end method .method public onFilesTooLarge(IFFZIZZ)V .locals 10 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context; move-result-object v1 if-eqz v1, :cond_0 const-string v0, "context ?: return" invoke-static {v1, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager; move-result-object v2 const-string v0, "parentFragmentManager" invoke-static {v2, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V sget-object v0, Lcom/discord/utilities/rest/SendUtils;->INSTANCE:Lcom/discord/utilities/rest/SendUtils; move v3, p2 move v4, p1 move v5, p3 move v6, p4 move v7, p5 move/from16 v8, p6 move/from16 v9, p7 invoke-virtual/range {v0 .. v9}, Lcom/discord/utilities/rest/SendUtils;->tryShowFilesTooLargeDialog(Landroid/content/Context;Landroidx/fragment/app/FragmentManager;FIFZIZZ)Z :cond_0 return-void .end method .method public onMessageTooLong(II)V .locals 17 .annotation build Landroid/annotation/SuppressLint; value = { "StringFormatMatches" } .end annotation move-object/from16 v0, p0 sget-object v1, Lcom/discord/widgets/notice/WidgetNoticeDialog;->Companion:Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion; invoke-virtual/range {p0 .. p0}, Landroidx/fragment/app/Fragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager; move-result-object v2 const-string v3, "parentFragmentManager" invoke-static {v2, v3}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V const v3, 0x7f120f73 invoke-virtual {v0, v3}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String; move-result-object v3 const/4 v4, 0x2 new-array v4, v4, [Ljava/lang/Object; invoke-static/range {p1 .. p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v5 const/4 v6, 0x0 aput-object v5, v4, v6 invoke-static/range {p2 .. p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v5 const/4 v6, 0x1 aput-object v5, v4, v6 const v5, 0x7f120f72 invoke-virtual {v0, v5, v4}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String; move-result-object v4 const-string v5, "getString(\n R\u2026xCharacterCount\n )" invoke-static {v4, v5}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V const v5, 0x7f121107 invoke-virtual {v0, v5}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String; move-result-object v5 const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x0 const/4 v10, 0x0 const/4 v11, 0x0 const/4 v12, 0x0 const/4 v13, 0x0 const/4 v14, 0x0 const/16 v15, 0x1ff0 const/16 v16, 0x0 invoke-static/range {v1 .. v16}, Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;->show$default(Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;Landroidx/fragment/app/FragmentManager;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/discord/stores/StoreNotices$Dialog$Type;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Boolean;Ljava/lang/String;IILjava/lang/Object;)V return-void .end method .method public onViewBound(Landroid/view/View;)V .locals 2 const-string/jumbo v0, "view" invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V new-instance p1, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments; invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getFlexInputFragment()Lcom/lytefast/flexinput/fragment/FlexInputFragment; move-result-object v0 invoke-direct {p1, v0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V iput-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatAttachments:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments; const/4 v0, 0x0 if-eqz p1, :cond_0 invoke-virtual {p1, p0}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->configureFlexInputFragment(Lcom/discord/app/AppFragment;)V sget-object p1, Lcom/discord/widgets/chat/input/sticker/StickerPickerFeatureFlag;->Companion:Lcom/discord/widgets/chat/input/sticker/StickerPickerFeatureFlag$Companion; invoke-virtual {p1}, Lcom/discord/widgets/chat/input/sticker/StickerPickerFeatureFlag$Companion;->getINSTANCE()Lcom/discord/widgets/chat/input/sticker/StickerPickerFeatureFlag; move-result-object p1 sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion; invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getExperiments()Lcom/discord/stores/StoreExperiments; move-result-object v1 invoke-virtual {p1, v1}, Lcom/discord/widgets/chat/input/sticker/StickerPickerFeatureFlag;->fetchExperiment(Lcom/discord/stores/StoreExperiments;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getFlexInputFragment()Lcom/lytefast/flexinput/fragment/FlexInputFragment; move-result-object p1 new-instance v1, Lcom/discord/widgets/chat/input/WidgetChatInput$onViewBound$1; invoke-direct {v1, p0}, Lcom/discord/widgets/chat/input/WidgetChatInput$onViewBound$1;->(Lcom/discord/widgets/chat/input/WidgetChatInput;)V invoke-virtual {p1, v1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->n(Lkotlin/jvm/functions/Function0;)V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->getChatInputWrap()Landroid/view/ViewGroup; move-result-object p1 invoke-static {}, Lf/a/f/b$b;->a()Lf/a/f/b; move-result-object v1 invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V const/4 p1, 0x0 const/4 v1, 0x1 invoke-static {p0, p1, v1, v0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->setWindowInsetsListeners$default(Lcom/discord/widgets/chat/input/WidgetChatInput;ZILjava/lang/Object;)V return-void :cond_0 const-string p1, "chatAttachments" invoke-static {p1}, Lc0/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V throw v0 .end method .method public onViewBoundOrOnResume()V .locals 12 invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V invoke-direct {p0}, Lcom/discord/widgets/chat/input/WidgetChatInput;->populateDirectShareData()V iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputEditTextHolder:Lcom/discord/widgets/chat/input/WidgetChatInputEditText; if-eqz v0, :cond_0 invoke-virtual {v0, p0}, Lcom/discord/widgets/chat/input/WidgetChatInputEditText;->configureMentionsDataSubscriptions(Lcom/discord/app/AppFragment;)V :cond_0 iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatInputTruncatedHint:Lcom/discord/widgets/chat/input/WidgetChatInputTruncatedHint; if-eqz v0, :cond_1 invoke-virtual {v0, p0}, Lcom/discord/widgets/chat/input/WidgetChatInputTruncatedHint;->addBindedTextWatcher(Lcom/discord/app/AppFragment;)V :cond_1 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context; move-result-object v0 invoke-static {v0}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->get(Landroid/content/Context;)Lrx/Observable; move-result-object v0 const-string v1, "WidgetChatInputModel\n .get(context)" invoke-static {v0, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V const/4 v1, 0x2 const/4 v2, 0x0 invoke-static {v0, p0, v2, v1, v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable; move-result-object v3 const-class v4, Lcom/discord/widgets/chat/input/WidgetChatInput; const/4 v5, 0x0 const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x0 new-instance v9, Lcom/discord/widgets/chat/input/WidgetChatInput$onViewBoundOrOnResume$1; invoke-direct {v9, p0}, Lcom/discord/widgets/chat/input/WidgetChatInput$onViewBoundOrOnResume$1;->(Lcom/discord/widgets/chat/input/WidgetChatInput;)V const/16 v10, 0x1e const/4 v11, 0x0 invoke-static/range {v3 .. v11}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->chatAttachments:Lcom/discord/widgets/chat/input/WidgetChatInputAttachments; if-eqz v0, :cond_3 iget-object v1, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->flexInputViewModel:Lcom/discord/widgets/chat/input/AppFlexInputViewModel; if-eqz v1, :cond_2 invoke-virtual {v0, v1}, Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;->setViewModel(Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;)V iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInput;->inlineVoiceVisibilityObserver:Lcom/discord/utilities/views/ViewVisibilityObserver; invoke-virtual {v0}, Lcom/discord/utilities/views/ViewVisibilityObserver;->observeIsVisible()Lrx/Observable; move-result-object v0 invoke-static {v0, p0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable; move-result-object v1 const-class v2, Lcom/discord/widgets/chat/input/WidgetChatInput; const/4 v3, 0x0 const/4 v4, 0x0 const/4 v5, 0x0 const/4 v6, 0x0 new-instance v7, Lcom/discord/widgets/chat/input/WidgetChatInput$onViewBoundOrOnResume$2; invoke-direct {v7, p0}, Lcom/discord/widgets/chat/input/WidgetChatInput$onViewBoundOrOnResume$2;->(Lcom/discord/widgets/chat/input/WidgetChatInput;)V const/16 v8, 0x1e const/4 v9, 0x0 invoke-static/range {v1 .. v9}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V return-void :cond_2 const-string v0, "flexInputViewModel" invoke-static {v0}, Lc0/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V throw v2 :cond_3 const-string v0, "chatAttachments" invoke-static {v0}, Lc0/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V throw v2 .end method