43 lines
2.2 KiB
Java
43 lines
2.2 KiB
Java
package com.discord.widgets.voice.sheet;
|
|
|
|
import android.content.Context;
|
|
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
|
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
|
|
import com.discord.databinding.WidgetVoiceBottomSheetBinding;
|
|
import com.discord.widgets.guildscheduledevent.GuildScheduledEventModelKt;
|
|
import com.discord.widgets.guildscheduledevent.WidgetPreviewGuildScheduledEvent;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetVoiceBottomSheet.kt */
|
|
public final class WidgetVoiceBottomSheet$onResume$2 extends o implements Function1<GuildScheduledEvent, Unit> {
|
|
public final /* synthetic */ WidgetVoiceBottomSheet this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetVoiceBottomSheet$onResume$2(WidgetVoiceBottomSheet widgetVoiceBottomSheet) {
|
|
super(1);
|
|
this.this$0 = widgetVoiceBottomSheet;
|
|
}
|
|
|
|
/* 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 */ Unit invoke(GuildScheduledEvent guildScheduledEvent) {
|
|
invoke(guildScheduledEvent);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(GuildScheduledEvent guildScheduledEvent) {
|
|
m.checkNotNullParameter(guildScheduledEvent, "event");
|
|
WidgetPreviewGuildScheduledEvent.Companion companion = WidgetPreviewGuildScheduledEvent.Companion;
|
|
WidgetVoiceBottomSheetBinding access$getBinding$p = WidgetVoiceBottomSheet.access$getBinding$p(this.this$0);
|
|
m.checkNotNullExpressionValue(access$getBinding$p, "binding");
|
|
CoordinatorLayout coordinatorLayout = access$getBinding$p.a;
|
|
m.checkNotNullExpressionValue(coordinatorLayout, "binding.root");
|
|
Context context = coordinatorLayout.getContext();
|
|
m.checkNotNullExpressionValue(context, "binding.root.context");
|
|
WidgetPreviewGuildScheduledEvent.Companion.launch$default(companion, context, GuildScheduledEventModelKt.toModel(guildScheduledEvent), Long.valueOf(guildScheduledEvent.g()), null, 8, null);
|
|
}
|
|
}
|