92 lines
4.4 KiB
Java
92 lines
4.4 KiB
Java
package com.discord.widgets.contact_sync;
|
|
|
|
import android.view.View;
|
|
import androidx.fragment.app.FragmentManager;
|
|
import com.discord.i18n.Hook;
|
|
import com.discord.i18n.RenderContext;
|
|
import com.discord.utilities.analytics.AnalyticsTracker;
|
|
import com.discord.utilities.analytics.Traits;
|
|
import com.discord.utilities.color.ColorCompat;
|
|
import com.discord.utilities.spans.ClickableSpan;
|
|
import com.discord.widgets.contact_sync.ContactSyncPermissionsSheet;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: ContactSyncUpsellSheet.kt */
|
|
public final class ContactSyncUpsellSheet$configureUI$2 extends o implements Function1<RenderContext, Unit> {
|
|
public final /* synthetic */ ContactSyncUpsellSheet this$0;
|
|
|
|
/* compiled from: ContactSyncUpsellSheet.kt */
|
|
/* renamed from: com.discord.widgets.contact_sync.ContactSyncUpsellSheet$configureUI$2$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function1<Hook, Unit> {
|
|
public final /* synthetic */ ContactSyncUpsellSheet$configureUI$2 this$0;
|
|
|
|
/* compiled from: ContactSyncUpsellSheet.kt */
|
|
/* renamed from: com.discord.widgets.contact_sync.ContactSyncUpsellSheet$configureUI$2$1$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function1<View, Unit> {
|
|
public final /* synthetic */ AnonymousClass1 this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass1(AnonymousClass1 r1) {
|
|
super(1);
|
|
this.this$0 = r1;
|
|
}
|
|
|
|
/* 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(View view) {
|
|
invoke(view);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(View view) {
|
|
m.checkNotNullParameter(view, "it");
|
|
AnalyticsTracker.INSTANCE.openPopout("Contact Sync", new Traits.Location("Contact Sync Learn More", null, null, null, null, 30, null));
|
|
ContactSyncPermissionsSheet.Companion companion = ContactSyncPermissionsSheet.Companion;
|
|
FragmentManager parentFragmentManager = this.this$0.this$0.this$0.getParentFragmentManager();
|
|
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
|
|
companion.show(parentFragmentManager);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass1(ContactSyncUpsellSheet$configureUI$2 contactSyncUpsellSheet$configureUI$2) {
|
|
super(1);
|
|
this.this$0 = contactSyncUpsellSheet$configureUI$2;
|
|
}
|
|
|
|
/* 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(Hook hook) {
|
|
invoke(hook);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(Hook hook) {
|
|
m.checkNotNullParameter(hook, "$receiver");
|
|
hook.a.add(new ClickableSpan(Integer.valueOf(ColorCompat.getColor(this.this$0.this$0.getContext(), 2131099923)), false, null, new AnonymousClass1(this), 4, null));
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public ContactSyncUpsellSheet$configureUI$2(ContactSyncUpsellSheet contactSyncUpsellSheet) {
|
|
super(1);
|
|
this.this$0 = contactSyncUpsellSheet;
|
|
}
|
|
|
|
/* 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(RenderContext renderContext) {
|
|
invoke(renderContext);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(RenderContext renderContext) {
|
|
m.checkNotNullParameter(renderContext, "$receiver");
|
|
renderContext.a("learnMoreHook", new AnonymousClass1(this));
|
|
}
|
|
}
|