discord-jadx/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput$onViewBound...

53 lines
3.3 KiB
Java

package com.discord.widgets.chat.input;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import com.discord.databinding.WidgetChatInputApplicationCommandsBinding;
import com.discord.widgets.chat.input.autocomplete.InputAutocomplete;
import com.lytefast.flexinput.widget.FlexEditText;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: WidgetChatInput.kt */
public final class WidgetChatInput$onViewBound$1 extends o implements Function0<Unit> {
public final /* synthetic */ WidgetChatInput this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChatInput$onViewBound$1(WidgetChatInput widgetChatInput) {
super(0);
this.this$0 = widgetChatInput;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
FlexEditText k = WidgetChatInput.access$getFlexInputFragment$p(this.this$0).k();
WidgetChatInput widgetChatInput = this.this$0;
TextView textView = WidgetChatInput.access$getBinding$p(widgetChatInput).k;
m.checkNotNullExpressionValue(textView, "binding.chatInputEmojiMatchingHeader");
RecyclerView recyclerView = WidgetChatInput.access$getBinding$p(this.this$0).l;
m.checkNotNullExpressionValue(recyclerView, "binding.chatInputMentionsRecycler");
RecyclerView recyclerView2 = WidgetChatInput.access$getBinding$p(this.this$0).f1766c;
m.checkNotNullExpressionValue(recyclerView2, "binding.chatInputCategoriesRecycler");
LinearLayout linearLayout = WidgetChatInput.access$getBinding$p(this.this$0).m;
m.checkNotNullExpressionValue(linearLayout, "binding.chatInputStickersContainer");
RecyclerView recyclerView3 = WidgetChatInput.access$getBinding$p(this.this$0).o;
m.checkNotNullExpressionValue(recyclerView3, "binding.chatInputStickersRecycler");
TextView textView2 = WidgetChatInput.access$getBinding$p(this.this$0).n;
m.checkNotNullExpressionValue(textView2, "binding.chatInputStickersMatchingHeader");
WidgetChatInputApplicationCommandsBinding widgetChatInputApplicationCommandsBinding = WidgetChatInput.access$getBinding$p(this.this$0).b;
m.checkNotNullExpressionValue(widgetChatInputApplicationCommandsBinding, "binding.applicationCommandsRoot");
InputAutocomplete inputAutocomplete = new InputAutocomplete(widgetChatInput, k, null, textView, recyclerView, recyclerView2, linearLayout, recyclerView3, textView2, widgetChatInputApplicationCommandsBinding);
WidgetChatInput.access$setAutocomplete$p(this.this$0, inputAutocomplete);
inputAutocomplete.onViewBoundOrOnResume();
WidgetChatInput.access$setChatInputEditTextHolder$p(this.this$0, new WidgetChatInputEditText(k, null, 2, null));
WidgetChatInput.access$setChatInputTruncatedHint$p(this.this$0, new WidgetChatInputTruncatedHint(k));
WidgetChatInputTruncatedHint access$getChatInputTruncatedHint$p = WidgetChatInput.access$getChatInputTruncatedHint$p(this.this$0);
if (access$getChatInputTruncatedHint$p != null) {
access$getChatInputTruncatedHint$p.addBindedTextWatcher(this.this$0);
}
}
}