2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.widgets.nux;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.view.View;
|
|
|
|
import c.a.d.l;
|
|
|
|
import com.discord.utilities.analytics.AnalyticsTracker;
|
|
|
|
import com.discord.utilities.time.ClockFactory;
|
|
|
|
import com.discord.utilities.view.extensions.ViewExtensions;
|
|
|
|
import com.discord.widgets.guilds.join.WidgetGuildJoin;
|
|
|
|
import com.google.android.material.textfield.TextInputLayout;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
|
|
/* compiled from: WidgetNuxPostRegistrationJoin.kt */
|
|
|
|
public final class WidgetNuxPostRegistrationJoin extends WidgetGuildJoin {
|
|
|
|
public static final Companion Companion = new Companion(null);
|
|
|
|
private static final String NUX_FLOW_TYPE = "Mobile NUX Post Reg";
|
|
|
|
private static final String NUX_STEP = "Ask to join";
|
|
|
|
|
|
|
|
/* compiled from: WidgetNuxPostRegistrationJoin.kt */
|
|
|
|
public static final class Companion {
|
|
|
|
private Companion() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
|
|
this();
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void show(Context context) {
|
|
|
|
m.checkNotNullParameter(context, "context");
|
|
|
|
l.e(context, WidgetNuxPostRegistrationJoin.class, null, 4);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public WidgetNuxPostRegistrationJoin() {
|
2021-07-13 20:23:20 +00:00
|
|
|
super(2131559123);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static final /* synthetic */ void access$handleGuildJoin(WidgetNuxPostRegistrationJoin widgetNuxPostRegistrationJoin) {
|
|
|
|
widgetNuxPostRegistrationJoin.handleGuildJoin();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // com.discord.widgets.guilds.join.WidgetGuildJoin, com.discord.app.AppFragment
|
|
|
|
public void onViewBound(View view) {
|
|
|
|
m.checkNotNullParameter(view, "view");
|
|
|
|
super.onViewBound(view);
|
|
|
|
setActionBarDisplayHomeAsUpEnabled(false);
|
|
|
|
AnalyticsTracker.newUserOnboarding$default(AnalyticsTracker.INSTANCE, "Mobile NUX Post Reg", "Registration", "Ask to join", null, false, 24, null);
|
|
|
|
getBinding().b.setOnClickListener(new WidgetNuxPostRegistrationJoin$onViewBound$1(this, ClockFactory.get().currentTimeMillis()));
|
2021-07-13 20:23:20 +00:00
|
|
|
TextInputLayout textInputLayout = getBinding().f1816c;
|
2021-06-27 20:44:35 +00:00
|
|
|
m.checkNotNullExpressionValue(textInputLayout, "binding.guildJoinInvite");
|
|
|
|
ViewExtensions.addBindedTextWatcher(textInputLayout, this, new WidgetNuxPostRegistrationJoin$onViewBound$2(this));
|
|
|
|
}
|
|
|
|
}
|