50 lines
2.6 KiB
Java
50 lines
2.6 KiB
Java
package com.discord.widgets.chat.list.adapter;
|
|
|
|
import android.content.ActivityNotFoundException;
|
|
import android.content.Intent;
|
|
import c.a.l.b;
|
|
import com.discord.api.activity.ActivityActionConfirmation;
|
|
import com.discord.api.application.Application;
|
|
import com.discord.utilities.intent.IntentUtils;
|
|
import com.discord.utilities.uri.UriHandler;
|
|
import d0.t.u;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import java.util.List;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetChatListAdapterEventsHandler.kt */
|
|
public final class WidgetChatListAdapterEventsHandler$onUserActivityAction$1 extends o implements Function1<ActivityActionConfirmation, Unit> {
|
|
public final /* synthetic */ Application $application;
|
|
public final /* synthetic */ WidgetChatListAdapterEventsHandler this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetChatListAdapterEventsHandler$onUserActivityAction$1(WidgetChatListAdapterEventsHandler widgetChatListAdapterEventsHandler, Application application) {
|
|
super(1);
|
|
this.this$0 = widgetChatListAdapterEventsHandler;
|
|
this.$application = application;
|
|
}
|
|
|
|
/* 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(ActivityActionConfirmation activityActionConfirmation) {
|
|
invoke(activityActionConfirmation);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(ActivityActionConfirmation activityActionConfirmation) {
|
|
m.checkNotNullParameter(activityActionConfirmation, "<name for destructuring parameter 0>");
|
|
try {
|
|
Intent join = IntentUtils.RouteBuilders.SDK.join(this.$application.a(), this.$application.f(), activityActionConfirmation.a());
|
|
join.addFlags(268435456);
|
|
WidgetChatListAdapterEventsHandler.access$getContext$p(this.this$0).startActivity(join);
|
|
} catch (ActivityNotFoundException unused) {
|
|
c.a.d.o.h(WidgetChatListAdapterEventsHandler.access$getContext$p(this.this$0), b.g(WidgetChatListAdapterEventsHandler.access$getContext$p(this.this$0), 2131894302, new Object[]{this.$application.g()}, null, 4), 0, null, 12);
|
|
String str = (String) u.firstOrNull((List<? extends Object>) this.$application.d());
|
|
if (str != null) {
|
|
UriHandler.directToPlayStore$default(WidgetChatListAdapterEventsHandler.access$getContext$p(this.this$0), str, null, 4, null);
|
|
}
|
|
}
|
|
}
|
|
}
|