package com.discord.widgets.chat.input.applicationcommands; import android.view.View; import android.widget.TextView; import androidx.constraintlayout.widget.ConstraintLayout; import c.d.b.a.a; import com.discord.databinding.ViewAppcommandsOptiontitleListitemBinding; import com.discord.models.commands.Application; import com.discord.utilities.icon.IconUtils; import com.discord.utilities.mg_recycler.MGRecyclerViewHolder; import com.facebook.drawee.view.SimpleDraweeView; import d0.z.d.m; /* compiled from: SelectedApplicationCommandAdapter.kt */ public final class SelectedAppCommandTitleAdapterItem extends MGRecyclerViewHolder { private final ViewAppcommandsOptiontitleListitemBinding binding; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public SelectedAppCommandTitleAdapterItem(SelectedApplicationCommandAdapter selectedApplicationCommandAdapter) { super(2131558728, selectedApplicationCommandAdapter); m.checkNotNullParameter(selectedApplicationCommandAdapter, "adapter"); View view = this.itemView; int i = 2131361976; TextView textView = (TextView) view.findViewById(2131361976); if (textView != null) { i = 2131361977; SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view.findViewById(2131361977); if (simpleDraweeView != null) { ViewAppcommandsOptiontitleListitemBinding viewAppcommandsOptiontitleListitemBinding = new ViewAppcommandsOptiontitleListitemBinding((ConstraintLayout) view, textView, simpleDraweeView); m.checkNotNullExpressionValue(viewAppcommandsOptiontitleListitemBinding, "ViewAppcommandsOptiontit…temBinding.bind(itemView)"); this.binding = viewAppcommandsOptiontitleListitemBinding; return; } } throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i))); } public void onConfigure(int i, SelectedApplicationCommandItem selectedApplicationCommandItem) { m.checkNotNullParameter(selectedApplicationCommandItem, "data"); super.onConfigure(i, (int) selectedApplicationCommandItem); StringBuilder H = a.H('/'); H.append(selectedApplicationCommandItem.getTitle()); String sb = H.toString(); TextView textView = this.binding.b; m.checkNotNullExpressionValue(textView, "binding.appcommandsOptiontitle"); textView.setText(sb); Application application = selectedApplicationCommandItem.getApplication(); if (application != null) { SimpleDraweeView simpleDraweeView = this.binding.f1645c; m.checkNotNullExpressionValue(simpleDraweeView, "binding.appcommandsOptiontitleAvatar"); IconUtils.setApplicationIcon$default(simpleDraweeView, application, false, 4, null); } } }