41 lines
2.3 KiB
Java
41 lines
2.3 KiB
Java
package com.discord.widgets.chat.input.applicationcommands;
|
|
|
|
import android.view.View;
|
|
import android.widget.TextView;
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
import com.discord.databinding.ViewAppcommandsOptionheadingListitemBinding;
|
|
import com.discord.utilities.mg_recycler.MGRecyclerViewHolder;
|
|
import d0.z.d.m;
|
|
/* compiled from: SelectedApplicationCommandAdapter.kt */
|
|
public final class SelectedAppCommandSectionHeadingAdapterItem extends MGRecyclerViewHolder<SelectedApplicationCommandAdapter, SelectedApplicationCommandItem> {
|
|
private final ViewAppcommandsOptionheadingListitemBinding binding;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public SelectedAppCommandSectionHeadingAdapterItem(SelectedApplicationCommandAdapter selectedApplicationCommandAdapter) {
|
|
super(2131558724, selectedApplicationCommandAdapter);
|
|
m.checkNotNullParameter(selectedApplicationCommandAdapter, "adapter");
|
|
View view = this.itemView;
|
|
int i = 2131361971;
|
|
TextView textView = (TextView) view.findViewById(2131361971);
|
|
if (textView != null) {
|
|
i = 2131362994;
|
|
View findViewById = view.findViewById(2131362994);
|
|
if (findViewById != null) {
|
|
ViewAppcommandsOptionheadingListitemBinding viewAppcommandsOptionheadingListitemBinding = new ViewAppcommandsOptionheadingListitemBinding((ConstraintLayout) view, textView, findViewById);
|
|
m.checkNotNullExpressionValue(viewAppcommandsOptionheadingListitemBinding, "ViewAppcommandsOptionhea…temBinding.bind(itemView)");
|
|
this.binding = viewAppcommandsOptionheadingListitemBinding;
|
|
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);
|
|
TextView textView = this.binding.b;
|
|
m.checkNotNullExpressionValue(textView, "binding.appcommandsOptionheadingTitle");
|
|
textView.setText(selectedApplicationCommandItem.getHeading());
|
|
}
|
|
}
|