103 lines
4.1 KiB
Java
103 lines
4.1 KiB
Java
package c.a.a.a;
|
|
|
|
import android.os.Bundle;
|
|
import android.view.View;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.TextView;
|
|
import androidx.fragment.app.Fragment;
|
|
import c.a.i.t0;
|
|
import com.discord.app.AppDialog;
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
|
import com.google.android.material.button.MaterialButton;
|
|
import d0.z.d.k;
|
|
import d0.z.d.m;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.reflect.KProperty;
|
|
/* compiled from: PremiumAndPremiumGuildActivatedDialog.kt */
|
|
public final class e extends AppDialog {
|
|
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.W(e.class, "binding", "getBinding()Lcom/discord/databinding/PremiumAndPremiumGuildActivatedDialogBinding;", 0)};
|
|
public static final a j = new a(null);
|
|
public Function0<Unit> k;
|
|
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
|
|
|
|
/* compiled from: PremiumAndPremiumGuildActivatedDialog.kt */
|
|
public static final class a {
|
|
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
|
}
|
|
}
|
|
|
|
/* compiled from: PremiumAndPremiumGuildActivatedDialog.kt */
|
|
public static final /* synthetic */ class b extends k implements Function1<View, t0> {
|
|
public static final b i = new b();
|
|
|
|
public b() {
|
|
super(1, t0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumAndPremiumGuildActivatedDialogBinding;", 0);
|
|
}
|
|
|
|
/* 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 t0 invoke(View view) {
|
|
View view2 = view;
|
|
m.checkNotNullParameter(view2, "p1");
|
|
int i2 = 2131364240;
|
|
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364240);
|
|
if (materialButton != null) {
|
|
i2 = 2131364246;
|
|
TextView textView = (TextView) view2.findViewById(2131364246);
|
|
if (textView != null) {
|
|
return new t0((LinearLayout) view2, materialButton, textView);
|
|
}
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
|
|
}
|
|
}
|
|
|
|
/* compiled from: PremiumAndPremiumGuildActivatedDialog.kt */
|
|
public static final class c implements View.OnClickListener {
|
|
public final /* synthetic */ e i;
|
|
|
|
public c(e eVar) {
|
|
this.i = eVar;
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
Function0<Unit> function0 = this.i.k;
|
|
if (function0 != null) {
|
|
function0.mo1invoke();
|
|
}
|
|
this.i.dismiss();
|
|
}
|
|
}
|
|
|
|
public e() {
|
|
super(2131558635);
|
|
}
|
|
|
|
@Override // com.discord.app.AppDialog
|
|
public void onViewBoundOrOnResume() {
|
|
String str;
|
|
super.onViewBoundOrOnResume();
|
|
if (this.k == null) {
|
|
dismiss();
|
|
}
|
|
Bundle arguments = getArguments();
|
|
if (arguments == null || (str = arguments.getString("extra_plan_text")) == null) {
|
|
str = "";
|
|
}
|
|
m.checkNotNullExpressionValue(str, "arguments?.getString(EXTRA_PLAN_NAME) ?: \"\"");
|
|
FragmentViewBindingDelegate fragmentViewBindingDelegate = this.l;
|
|
KProperty<?>[] kPropertyArr = i;
|
|
TextView textView = ((t0) fragmentViewBindingDelegate.getValue((Fragment) this, kPropertyArr[0])).f153c;
|
|
m.checkNotNullExpressionValue(textView, "binding.premiumAndPremiumGuildActivatedText");
|
|
c.a.l.b.n(textView, 2131886939, new Object[]{str}, null, 4);
|
|
requireDialog().setCanceledOnTouchOutside(true);
|
|
((t0) this.l.getValue((Fragment) this, kPropertyArr[0])).b.setOnClickListener(new c(this));
|
|
}
|
|
}
|