106 lines
4.5 KiB
Java
106 lines
4.5 KiB
Java
package b.a.a;
|
|
|
|
import android.text.method.LinkMovementMethod;
|
|
import android.view.View;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.TextView;
|
|
import androidx.fragment.app.Fragment;
|
|
import b.a.d.f;
|
|
import b.a.i.k4;
|
|
import com.discord.R;
|
|
import com.discord.app.AppDialog;
|
|
import com.discord.utilities.view.text.LinkifiedTextView;
|
|
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.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.reflect.KProperty;
|
|
/* compiled from: WidgetBlockRussianPurchasesDialog.kt */
|
|
/* loaded from: classes.dex */
|
|
public final class r extends AppDialog {
|
|
public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(r.class, "binding", "getBinding()Lcom/discord/databinding/WidgetBlockRussianPurchasesDialogBinding;", 0)};
|
|
public static final a k = new a(null);
|
|
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null);
|
|
|
|
/* compiled from: WidgetBlockRussianPurchasesDialog.kt */
|
|
/* loaded from: classes.dex */
|
|
public static final class a {
|
|
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
|
}
|
|
}
|
|
|
|
/* compiled from: WidgetBlockRussianPurchasesDialog.kt */
|
|
/* loaded from: classes.dex */
|
|
public static final /* synthetic */ class b extends k implements Function1<View, k4> {
|
|
public static final b j = new b();
|
|
|
|
public b() {
|
|
super(1, k4.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetBlockRussianPurchasesDialogBinding;", 0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public k4 invoke(View view) {
|
|
View view2 = view;
|
|
m.checkNotNullParameter(view2, "p1");
|
|
int i = R.id.notice_body_container;
|
|
LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.notice_body_container);
|
|
if (linearLayout != null) {
|
|
i = R.id.notice_body_text;
|
|
LinkifiedTextView linkifiedTextView = (LinkifiedTextView) view2.findViewById(R.id.notice_body_text);
|
|
if (linkifiedTextView != null) {
|
|
i = R.id.notice_header;
|
|
TextView textView = (TextView) view2.findViewById(R.id.notice_header);
|
|
if (textView != null) {
|
|
i = R.id.notice_header_container;
|
|
LinearLayout linearLayout2 = (LinearLayout) view2.findViewById(R.id.notice_header_container);
|
|
if (linearLayout2 != null) {
|
|
i = R.id.OK_BUTTON;
|
|
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.OK_BUTTON);
|
|
if (materialButton != null) {
|
|
return new k4((LinearLayout) view2, linearLayout, linkifiedTextView, textView, linearLayout2, materialButton);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i)));
|
|
}
|
|
}
|
|
|
|
/* compiled from: WidgetBlockRussianPurchasesDialog.kt */
|
|
/* loaded from: classes.dex */
|
|
public static final class c implements View.OnClickListener {
|
|
public c() {
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
r.this.dismiss();
|
|
}
|
|
}
|
|
|
|
public r() {
|
|
super(R.layout.widget_block_russian_purchases_dialog);
|
|
}
|
|
|
|
public final k4 g() {
|
|
return (k4) this.l.getValue((Fragment) this, j[0]);
|
|
}
|
|
|
|
@Override // com.discord.app.AppDialog
|
|
public void onViewBound(View view) {
|
|
m.checkNotNullParameter(view, "view");
|
|
super.onViewBound(view);
|
|
LinkifiedTextView linkifiedTextView = g().f146b;
|
|
m.checkNotNullExpressionValue(linkifiedTextView, "binding.noticeBodyText");
|
|
b.a.k.b.n(linkifiedTextView, R.string.region_blocked_payments_cta, new Object[]{f.a.a(4708041338391L, null)}, null, 4);
|
|
LinkifiedTextView linkifiedTextView2 = g().f146b;
|
|
m.checkNotNullExpressionValue(linkifiedTextView2, "binding.noticeBodyText");
|
|
linkifiedTextView2.setMovementMethod(LinkMovementMethod.getInstance());
|
|
g().c.setOnClickListener(new c());
|
|
}
|
|
}
|