60 lines
3 KiB
Java
60 lines
3 KiB
Java
package com.discord.widgets.chat.list.adapter;
|
|
|
|
import android.view.View;
|
|
import com.discord.api.sticker.BaseSticker;
|
|
import com.discord.api.sticker.Sticker;
|
|
import com.discord.views.sticker.StickerView;
|
|
import com.discord.widgets.chat.list.entries.ChatListEntry;
|
|
import com.discord.widgets.chat.list.entries.StickerEntry;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetChatListAdapterItemSticker.kt */
|
|
public final class WidgetChatListAdapterItemSticker$onConfigure$1 extends o implements Function1<Sticker, Unit> {
|
|
public final /* synthetic */ ChatListEntry $data;
|
|
public final /* synthetic */ StickerEntry $stickerEntry;
|
|
public final /* synthetic */ WidgetChatListAdapterItemSticker this$0;
|
|
|
|
/* compiled from: WidgetChatListAdapterItemSticker.kt */
|
|
/* renamed from: com.discord.widgets.chat.list.adapter.WidgetChatListAdapterItemSticker$onConfigure$1$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 implements View.OnClickListener {
|
|
public final /* synthetic */ BaseSticker $sticker;
|
|
public final /* synthetic */ WidgetChatListAdapterItemSticker$onConfigure$1 this$0;
|
|
|
|
public AnonymousClass1(WidgetChatListAdapterItemSticker$onConfigure$1 widgetChatListAdapterItemSticker$onConfigure$1, BaseSticker baseSticker) {
|
|
this.this$0 = widgetChatListAdapterItemSticker$onConfigure$1;
|
|
this.$sticker = baseSticker;
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
WidgetChatListAdapterItemSticker.access$getAdapter$p(this.this$0.this$0).onStickerClicked(((StickerEntry) this.this$0.$data).getMessage(), this.$sticker);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetChatListAdapterItemSticker$onConfigure$1(WidgetChatListAdapterItemSticker widgetChatListAdapterItemSticker, StickerEntry stickerEntry, ChatListEntry chatListEntry) {
|
|
super(1);
|
|
this.this$0 = widgetChatListAdapterItemSticker;
|
|
this.$stickerEntry = stickerEntry;
|
|
this.$data = chatListEntry;
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(Sticker sticker) {
|
|
invoke(sticker);
|
|
return Unit.a;
|
|
}
|
|
|
|
/* JADX DEBUG: Failed to insert an additional move for type inference into block B:0:0x0000 */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public final void invoke(Sticker sticker) {
|
|
if (sticker == 0) {
|
|
sticker = this.$stickerEntry.getSticker();
|
|
}
|
|
StickerView.d(WidgetChatListAdapterItemSticker.access$getBinding$p(this.this$0).b, sticker, null, 2);
|
|
WidgetChatListAdapterItemSticker.access$getBinding$p(this.this$0).b.setOnClickListener(new AnonymousClass1(this, sticker));
|
|
}
|
|
}
|