41 lines
2.0 KiB
Java
41 lines
2.0 KiB
Java
package com.discord.widgets.emoji;
|
|
|
|
import androidx.fragment.app.FragmentActivity;
|
|
import androidx.fragment.app.FragmentManager;
|
|
import com.discord.stores.StoreNotices;
|
|
import com.discord.stores.StoreStream;
|
|
import com.discord.utilities.textprocessing.node.EmojiNode;
|
|
import com.discord.widgets.emoji.WidgetEmojiSheet;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetEmojiSheet.kt */
|
|
public final class WidgetEmojiSheet$Companion$enqueueNotice$showEmojiSheetNotice$1 extends o implements Function1<FragmentActivity, Boolean> {
|
|
public final /* synthetic */ EmojiNode.EmojiIdAndType $emojiIdAndType;
|
|
public final /* synthetic */ String $noticeName;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetEmojiSheet$Companion$enqueueNotice$showEmojiSheetNotice$1(EmojiNode.EmojiIdAndType emojiIdAndType, String str) {
|
|
super(1);
|
|
this.$emojiIdAndType = emojiIdAndType;
|
|
this.$noticeName = str;
|
|
}
|
|
|
|
/* 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 */ Boolean invoke(FragmentActivity fragmentActivity) {
|
|
return Boolean.valueOf(invoke(fragmentActivity));
|
|
}
|
|
|
|
public final boolean invoke(FragmentActivity fragmentActivity) {
|
|
m.checkNotNullParameter(fragmentActivity, "fragmentActivity");
|
|
WidgetEmojiSheet.Companion companion = WidgetEmojiSheet.Companion;
|
|
FragmentManager supportFragmentManager = fragmentActivity.getSupportFragmentManager();
|
|
m.checkNotNullExpressionValue(supportFragmentManager, "fragmentActivity.supportFragmentManager");
|
|
companion.show(supportFragmentManager, this.$emojiIdAndType);
|
|
StoreNotices.markSeen$default(StoreStream.Companion.getNotices(), this.$noticeName, 0, 2, null);
|
|
return true;
|
|
}
|
|
}
|