forked from Juby210/discord-jadx
46 lines
2.0 KiB
Java
46 lines
2.0 KiB
Java
package c.a.y.p0;
|
|
|
|
import android.view.View;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.TextView;
|
|
import c.a.i.z4;
|
|
import c.a.y.p0.d;
|
|
import c.d.b.a.a;
|
|
import com.discord.R;
|
|
import com.discord.utilities.mg_recycler.MGRecyclerViewHolder;
|
|
import com.discord.utilities.resources.StringResourceUtilsKt;
|
|
import d0.z.d.m;
|
|
/* compiled from: SpeakersViewHolder.kt */
|
|
public final class b extends MGRecyclerViewHolder<c, d> {
|
|
public final z4 a;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public b(c cVar) {
|
|
super((int) R.layout.widget_discovery_other_speakers_count, cVar);
|
|
m.checkNotNullParameter(cVar, "adapter");
|
|
View view = this.itemView;
|
|
TextView textView = (TextView) view.findViewById(R.id.other_speakers_count_text);
|
|
if (textView != null) {
|
|
z4 z4Var = new z4((LinearLayout) view, textView);
|
|
m.checkNotNullExpressionValue(z4Var, "WidgetDiscoveryOtherSpea…untBinding.bind(itemView)");
|
|
this.a = z4Var;
|
|
return;
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(R.id.other_speakers_count_text)));
|
|
}
|
|
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [int, java.lang.Object] */
|
|
@Override // com.discord.utilities.mg_recycler.MGRecyclerViewHolder
|
|
public void onConfigure(int i, d dVar) {
|
|
d dVar2 = dVar;
|
|
m.checkNotNullParameter(dVar2, "data");
|
|
super.onConfigure(i, dVar2);
|
|
int i2 = ((d.b) dVar2).l;
|
|
TextView textView = this.a.b;
|
|
m.checkNotNullExpressionValue(textView, "binding.otherSpeakersCountText");
|
|
View view = this.itemView;
|
|
m.checkNotNullExpressionValue(view, "itemView");
|
|
textView.setText(c.a.k.b.j(view, R.string.discovery_speaker_count, new Object[]{StringResourceUtilsKt.getI18nPluralString(a.x(this.itemView, "itemView", "itemView.context"), R.plurals.discovery_speaker_count_speakersCount, i2, Integer.valueOf(i2))}, null, 4));
|
|
}
|
|
}
|