forked from Juby210/discord-jadx
39 lines
2 KiB
Java
39 lines
2 KiB
Java
package com.discord.widgets.guilds.profile;
|
|
|
|
import android.view.View;
|
|
import com.discord.databinding.WidgetGuildProfileEmojiItemBinding;
|
|
import com.discord.models.domain.emoji.Emoji;
|
|
import com.discord.utilities.icon.IconUtils;
|
|
import com.discord.utilities.images.MGImages;
|
|
import com.discord.widgets.guilds.profile.EmojiItem;
|
|
import com.facebook.drawee.view.SimpleDraweeView;
|
|
import d0.z.d.m;
|
|
/* compiled from: WidgetGuildProfileSheetEmojisAdapter.kt */
|
|
public final class EmojiViewHolder extends BaseEmojiViewHolder {
|
|
private final WidgetGuildProfileEmojiItemBinding binding;
|
|
|
|
/* JADX WARNING: Illegal instructions before constructor call */
|
|
public EmojiViewHolder(WidgetGuildProfileEmojiItemBinding widgetGuildProfileEmojiItemBinding) {
|
|
super(r0);
|
|
m.checkNotNullParameter(widgetGuildProfileEmojiItemBinding, "binding");
|
|
SimpleDraweeView simpleDraweeView = widgetGuildProfileEmojiItemBinding.a;
|
|
m.checkNotNullExpressionValue(simpleDraweeView, "binding.root");
|
|
this.binding = widgetGuildProfileEmojiItemBinding;
|
|
}
|
|
|
|
@Override // com.discord.widgets.guilds.profile.BaseEmojiViewHolder
|
|
public void bind(EmojiItem emojiItem) {
|
|
m.checkNotNullParameter(emojiItem, "data");
|
|
super.bind(emojiItem);
|
|
SimpleDraweeView simpleDraweeView = this.binding.f2396b;
|
|
m.checkNotNullExpressionValue(simpleDraweeView, "binding.guildProfileSheetEmojiImageview");
|
|
int mediaProxySize = IconUtils.getMediaProxySize(simpleDraweeView.getLayoutParams().width);
|
|
SimpleDraweeView simpleDraweeView2 = this.binding.f2396b;
|
|
m.checkNotNullExpressionValue(simpleDraweeView2, "binding.guildProfileSheetEmojiImageview");
|
|
Emoji emoji = ((EmojiItem.EmojiData) emojiItem).getEmoji();
|
|
View view = this.itemView;
|
|
m.checkNotNullExpressionValue(view, "itemView");
|
|
MGImages.setImage$default(simpleDraweeView2, emoji.getImageUri(true, mediaProxySize, view.getContext()), 0, 0, false, null, null, 124, null);
|
|
}
|
|
}
|