2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.guilds.invite;
|
|
|
|
|
|
|
|
import androidx.fragment.app.FragmentActivity;
|
|
|
|
import androidx.fragment.app.FragmentManager;
|
|
|
|
import com.discord.stores.StoreNotices;
|
|
|
|
import com.discord.widgets.guilds.invite.WidgetGuildInviteShareSheet;
|
2021-11-02 06:38:17 +00:00
|
|
|
import d0.z.d.m;
|
|
|
|
import d0.z.d.o;
|
2021-08-03 07:33:18 +00:00
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
/* compiled from: WidgetGuildInviteShareSheet.kt */
|
|
|
|
public final class WidgetGuildInviteShareSheet$Companion$enqueueNoticeForHomeTab$notice$1 extends o implements Function1<FragmentActivity, Boolean> {
|
|
|
|
public final /* synthetic */ Long $channelId;
|
|
|
|
public final /* synthetic */ long $guildId;
|
|
|
|
public final /* synthetic */ String $noticeName;
|
|
|
|
public final /* synthetic */ String $source;
|
|
|
|
public final /* synthetic */ StoreNotices $storeNotices;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetGuildInviteShareSheet$Companion$enqueueNoticeForHomeTab$notice$1(Long l, long j, String str, StoreNotices storeNotices, String str2) {
|
|
|
|
super(1);
|
|
|
|
this.$channelId = l;
|
|
|
|
this.$guildId = j;
|
|
|
|
this.$source = str;
|
|
|
|
this.$storeNotices = storeNotices;
|
|
|
|
this.$noticeName = str2;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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");
|
|
|
|
WidgetGuildInviteShareSheet.Companion companion = WidgetGuildInviteShareSheet.Companion;
|
|
|
|
FragmentManager supportFragmentManager = fragmentActivity.getSupportFragmentManager();
|
|
|
|
m.checkNotNullExpressionValue(supportFragmentManager, "fragmentActivity.supportFragmentManager");
|
|
|
|
companion.show(supportFragmentManager, this.$channelId, this.$guildId, this.$source);
|
|
|
|
StoreNotices.markSeen$default(this.$storeNotices, this.$noticeName, 0, 2, null);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|