55 lines
2.6 KiB
Java
55 lines
2.6 KiB
Java
package com.discord.widgets.guildscheduledevent;
|
|
|
|
import android.content.Intent;
|
|
import android.view.View;
|
|
import androidx.fragment.app.FragmentActivity;
|
|
import com.discord.views.CheckedSetting;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: WidgetPreviewGuildScheduledEvent.kt */
|
|
public final class WidgetPreviewGuildScheduledEvent$onViewBound$2 implements View.OnClickListener {
|
|
public final /* synthetic */ WidgetPreviewGuildScheduledEvent this$0;
|
|
|
|
/* compiled from: WidgetPreviewGuildScheduledEvent.kt */
|
|
/* renamed from: com.discord.widgets.guildscheduledevent.WidgetPreviewGuildScheduledEvent$onViewBound$2$2 reason: invalid class name */
|
|
public static final class AnonymousClass2 extends o implements Function0<Unit> {
|
|
public final /* synthetic */ WidgetPreviewGuildScheduledEvent$onViewBound$2 this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass2(WidgetPreviewGuildScheduledEvent$onViewBound$2 widgetPreviewGuildScheduledEvent$onViewBound$2) {
|
|
super(0);
|
|
this.this$0 = widgetPreviewGuildScheduledEvent$onViewBound$2;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final void mo1invoke() {
|
|
FragmentActivity activity = this.this$0.this$0.getActivity();
|
|
if (activity != null) {
|
|
Intent intent = new Intent();
|
|
intent.putExtra("com.discord.intent.extra.EXTRA_CHANNEL_ID", WidgetPreviewGuildScheduledEvent.access$getEventModel$p(this.this$0.this$0).getChannelId());
|
|
activity.setResult(-1, intent);
|
|
activity.finish();
|
|
}
|
|
}
|
|
}
|
|
|
|
public WidgetPreviewGuildScheduledEvent$onViewBound$2(WidgetPreviewGuildScheduledEvent widgetPreviewGuildScheduledEvent) {
|
|
this.this$0 = widgetPreviewGuildScheduledEvent;
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
PreviewGuildScheduledEventViewModel access$getViewModel$p = WidgetPreviewGuildScheduledEvent.access$getViewModel$p(this.this$0);
|
|
CheckedSetting checkedSetting = WidgetPreviewGuildScheduledEvent.access$getBinding$p(this.this$0).f1894c;
|
|
m.checkNotNullExpressionValue(checkedSetting, "checkedSetting");
|
|
boolean z2 = true;
|
|
if (!(checkedSetting.getVisibility() == 0) || !checkedSetting.isChecked()) {
|
|
z2 = false;
|
|
}
|
|
access$getViewModel$p.onBottomButtonClicked(this.this$0.requireContext(), z2, new AnonymousClass2(this));
|
|
}
|
|
}
|