discord-jadx/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemStickerGreet.java
2021-07-04 01:36:06 +02:00

62 lines
3.3 KiB
Java

package com.discord.widgets.chat.list.adapter;
import android.view.View;
import android.widget.LinearLayout;
import c.a.l.b;
import com.discord.api.sticker.Sticker;
import com.discord.databinding.WidgetChatListAdapterItemStickerGreetBinding;
import com.discord.views.sticker.StickerView;
import com.discord.widgets.chat.list.entries.ChatListEntry;
import com.discord.widgets.chat.list.entries.StickerGreetEntry;
import com.google.android.material.button.MaterialButton;
import d0.z.d.m;
import rx.Subscription;
/* compiled from: WidgetChatListAdapterItemStickerGreet.kt */
public final class WidgetChatListAdapterItemStickerGreet extends WidgetChatListItem {
private final WidgetChatListAdapterItemStickerGreetBinding binding;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChatListAdapterItemStickerGreet(WidgetChatListAdapter widgetChatListAdapter) {
super(2131558959, widgetChatListAdapter);
m.checkNotNullParameter(widgetChatListAdapter, "adapter");
View view = this.itemView;
int i = 2131362538;
StickerView stickerView = (StickerView) view.findViewById(2131362538);
if (stickerView != null) {
i = 2131364622;
MaterialButton materialButton = (MaterialButton) view.findViewById(2131364622);
if (materialButton != null) {
WidgetChatListAdapterItemStickerGreetBinding widgetChatListAdapterItemStickerGreetBinding = new WidgetChatListAdapterItemStickerGreetBinding((LinearLayout) view, stickerView, materialButton);
m.checkNotNullExpressionValue(widgetChatListAdapterItemStickerGreetBinding, "WidgetChatListAdapterIte…eetBinding.bind(itemView)");
this.binding = widgetChatListAdapterItemStickerGreetBinding;
return;
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
}
public static final /* synthetic */ WidgetChatListAdapter access$getAdapter$p(WidgetChatListAdapterItemStickerGreet widgetChatListAdapterItemStickerGreet) {
return (WidgetChatListAdapter) widgetChatListAdapterItemStickerGreet.adapter;
}
@Override // com.discord.utilities.mg_recycler.MGRecyclerViewHolder
public Subscription getSubscription() {
return this.binding.b.getSubscription();
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListItem
public void onConfigure(int i, ChatListEntry chatListEntry) {
m.checkNotNullParameter(chatListEntry, "data");
super.onConfigure(i, chatListEntry);
StickerGreetEntry stickerGreetEntry = (StickerGreetEntry) chatListEntry;
Sticker component1 = stickerGreetEntry.component1();
long component2 = stickerGreetEntry.component2();
String component3 = stickerGreetEntry.component3();
int component4 = stickerGreetEntry.component4();
StickerView.d(this.binding.b, component1, null, 2);
this.binding.f1743c.setOnClickListener(new WidgetChatListAdapterItemStickerGreet$onConfigure$1(this, component2, component4, component1));
MaterialButton materialButton = this.binding.f1743c;
m.checkNotNullExpressionValue(materialButton, "binding.sendStickerGreetButton");
b.m(materialButton, 2131894677, new Object[]{component3}, null, 4);
}
}