forked from Juby210/discord-jadx
75 lines
3.1 KiB
Java
75 lines
3.1 KiB
Java
package com.discord.widgets.auth;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.view.View;
|
|
import androidx.fragment.app.Fragment;
|
|
import c.a.d.j;
|
|
import c.d.b.a.a;
|
|
import c0.z.d.m;
|
|
import com.discord.R;
|
|
import com.discord.app.AppFragment;
|
|
import com.discord.databinding.WidgetAuthResetPasswordBinding;
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.reflect.KProperty;
|
|
/* compiled from: WidgetAuthResetPassword.kt */
|
|
public final class WidgetAuthResetPassword extends AppFragment {
|
|
public static final /* synthetic */ KProperty[] $$delegatedProperties = {a.Z(WidgetAuthResetPassword.class, "binding", "getBinding()Lcom/discord/databinding/WidgetAuthResetPasswordBinding;", 0)};
|
|
public static final Companion Companion = new Companion(null);
|
|
private static final String INTENT_EXTRA_TOKEN = "INTENT_EXTRA_TOKEN";
|
|
private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetAuthResetPassword$binding$2.INSTANCE, null, 2, null);
|
|
private String token;
|
|
|
|
/* compiled from: WidgetAuthResetPassword.kt */
|
|
public static final class Companion {
|
|
private Companion() {
|
|
}
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public final void start(Context context, String str) {
|
|
m.checkNotNullParameter(context, "context");
|
|
m.checkNotNullParameter(str, "token");
|
|
Intent intent = new Intent();
|
|
intent.putExtra(WidgetAuthResetPassword.INTENT_EXTRA_TOKEN, str);
|
|
j.d(context, WidgetAuthResetPassword.class, intent);
|
|
}
|
|
}
|
|
|
|
public WidgetAuthResetPassword() {
|
|
super(R.layout.widget_auth_reset_password);
|
|
}
|
|
|
|
public static final /* synthetic */ String access$getToken$p(WidgetAuthResetPassword widgetAuthResetPassword) {
|
|
String str = widgetAuthResetPassword.token;
|
|
if (str == null) {
|
|
m.throwUninitializedPropertyAccessException("token");
|
|
}
|
|
return str;
|
|
}
|
|
|
|
public static final /* synthetic */ void access$setToken$p(WidgetAuthResetPassword widgetAuthResetPassword, String str) {
|
|
widgetAuthResetPassword.token = str;
|
|
}
|
|
|
|
private final WidgetAuthResetPasswordBinding getBinding() {
|
|
return (WidgetAuthResetPasswordBinding) this.binding$delegate.getValue((Fragment) this, $$delegatedProperties[0]);
|
|
}
|
|
|
|
@Override // com.discord.app.AppFragment
|
|
public void onViewBound(View view) {
|
|
m.checkNotNullParameter(view, "view");
|
|
super.onViewBound(view);
|
|
String stringExtra = getMostRecentIntent().getStringExtra(INTENT_EXTRA_TOKEN);
|
|
if (stringExtra == null) {
|
|
stringExtra = "";
|
|
}
|
|
this.token = stringExtra;
|
|
getBinding().f2115c.setOnClickListener(new WidgetAuthResetPassword$onViewBound$1(this));
|
|
getBinding().b.setOnClickListener(new WidgetAuthResetPassword$onViewBound$2(this));
|
|
}
|
|
}
|