64 lines
2.9 KiB
Java
64 lines
2.9 KiB
Java
package com.discord.widgets.chat.list.actions;
|
|
|
|
import androidx.fragment.app.FragmentManager;
|
|
import com.discord.models.domain.emoji.Emoji;
|
|
import com.discord.widgets.chat.input.emoji.EmojiPickerContextType;
|
|
import com.discord.widgets.chat.input.emoji.EmojiPickerListener;
|
|
import com.discord.widgets.chat.input.emoji.EmojiPickerNavigator;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: WidgetChatListActions.kt */
|
|
public final class WidgetChatListActions$onViewCreated$2 extends o implements Function0<Unit> {
|
|
public final /* synthetic */ WidgetChatListActions this$0;
|
|
|
|
/* compiled from: WidgetChatListActions.kt */
|
|
/* renamed from: com.discord.widgets.chat.list.actions.WidgetChatListActions$onViewCreated$2$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 implements EmojiPickerListener {
|
|
public final /* synthetic */ WidgetChatListActions$onViewCreated$2 this$0;
|
|
|
|
public AnonymousClass1(WidgetChatListActions$onViewCreated$2 widgetChatListActions$onViewCreated$2) {
|
|
this.this$0 = widgetChatListActions$onViewCreated$2;
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.input.emoji.EmojiPickerListener
|
|
public void onEmojiPicked(Emoji emoji) {
|
|
m.checkNotNullParameter(emoji, "emoji");
|
|
WidgetChatListActions.access$addReaction(this.this$0.this$0, emoji);
|
|
}
|
|
}
|
|
|
|
/* compiled from: WidgetChatListActions.kt */
|
|
/* renamed from: com.discord.widgets.chat.list.actions.WidgetChatListActions$onViewCreated$2$2 reason: invalid class name */
|
|
public static final class AnonymousClass2 extends o implements Function0<Unit> {
|
|
public final /* synthetic */ WidgetChatListActions$onViewCreated$2 this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass2(WidgetChatListActions$onViewCreated$2 widgetChatListActions$onViewCreated$2) {
|
|
super(0);
|
|
this.this$0 = widgetChatListActions$onViewCreated$2;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final void mo1invoke() {
|
|
this.this$0.this$0.dismiss();
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetChatListActions$onViewCreated$2(WidgetChatListActions widgetChatListActions) {
|
|
super(0);
|
|
this.this$0 = widgetChatListActions;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final void mo1invoke() {
|
|
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
|
|
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
|
|
EmojiPickerNavigator.launchBottomSheet(parentFragmentManager, new AnonymousClass1(this), EmojiPickerContextType.CHAT, new AnonymousClass2(this));
|
|
}
|
|
}
|