discord-jadx/app/src/main/java/com/discord/widgets/guilds/profile/MoreEmojiViewHolder.java

36 lines
1.6 KiB
Java

package com.discord.widgets.guilds.profile;
import android.content.res.Resources;
import android.view.View;
import android.widget.TextView;
import c.a.k.b;
import com.discord.databinding.WidgetGuildProfileEmojiExtraBinding;
import com.discord.widgets.guilds.profile.EmojiItem;
import d0.z.d.m;
/* compiled from: WidgetGuildProfileSheetEmojisAdapter.kt */
public final class MoreEmojiViewHolder extends BaseEmojiViewHolder {
private final WidgetGuildProfileEmojiExtraBinding binding;
/* JADX WARNING: Illegal instructions before constructor call */
public MoreEmojiViewHolder(WidgetGuildProfileEmojiExtraBinding widgetGuildProfileEmojiExtraBinding) {
super(r0);
m.checkNotNullParameter(widgetGuildProfileEmojiExtraBinding, "binding");
TextView textView = widgetGuildProfileEmojiExtraBinding.a;
m.checkNotNullExpressionValue(textView, "binding.root");
this.binding = widgetGuildProfileEmojiExtraBinding;
}
@Override // com.discord.widgets.guilds.profile.BaseEmojiViewHolder
public void bind(EmojiItem emojiItem) {
m.checkNotNullParameter(emojiItem, "data");
super.bind(emojiItem);
TextView textView = this.binding.a;
m.checkNotNullExpressionValue(textView, "binding.root");
View view = this.itemView;
m.checkNotNullExpressionValue(view, "itemView");
Resources resources = view.getResources();
m.checkNotNullExpressionValue(resources, "itemView.resources");
textView.setText(b.h(resources, 2131888498, new Object[]{String.valueOf(((EmojiItem.MoreEmoji) emojiItem).getExtraEmojiCount())}, null, 4));
}
}