discord-jadx/app/src/main/java/com/discord/widgets/home/WidgetHome$showSurvey$1.java

39 lines
1.9 KiB
Java

package com.discord.widgets.home;
import androidx.fragment.app.FragmentActivity;
import androidx.fragment.app.FragmentManager;
import com.discord.stores.StoreNotices;
import com.discord.stores.StoreStream;
import com.discord.utilities.surveys.SurveyUtils;
import com.discord.widgets.home.WidgetMainSurveyDialog;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetHome.kt */
public final class WidgetHome$showSurvey$1 extends o implements Function1<FragmentActivity, Boolean> {
public final /* synthetic */ SurveyUtils.Survey $survey;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetHome$showSurvey$1(SurveyUtils.Survey survey) {
super(1);
this.$survey = survey;
}
/* 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, "activity");
WidgetMainSurveyDialog.Companion companion = WidgetMainSurveyDialog.Companion;
FragmentManager supportFragmentManager = fragmentActivity.getSupportFragmentManager();
m.checkNotNullExpressionValue(supportFragmentManager, "activity.supportFragmentManager");
companion.show(supportFragmentManager, this.$survey.getSurveyId(), this.$survey.getSurveyURL(), this.$survey.getSurveyBody(), this.$survey.getSurveyTitle());
StoreNotices.markSeen$default(StoreStream.Companion.getNotices(), this.$survey.getNoticeKey(), 0, 2, null);
return true;
}
}