2021-06-27 20:44:35 +00:00
|
|
|
package c.a.a;
|
|
|
|
|
|
|
|
import android.view.View;
|
|
|
|
import android.widget.LinearLayout;
|
|
|
|
import androidx.fragment.app.Fragment;
|
|
|
|
import androidx.fragment.app.FragmentManager;
|
2021-08-27 18:41:52 +00:00
|
|
|
import c.a.i.s;
|
2021-08-09 22:50:01 +00:00
|
|
|
import com.discord.R;
|
2021-06-27 20:44:35 +00:00
|
|
|
import com.discord.app.AppDialog;
|
|
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
|
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
|
|
|
import com.google.android.material.button.MaterialButton;
|
2021-11-08 18:25:28 +00:00
|
|
|
import d0.z.d.k;
|
2021-06-27 20:44:35 +00:00
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
|
|
import kotlin.reflect.KProperty;
|
2021-08-10 21:50:53 +00:00
|
|
|
/* compiled from: GuildVideoAtCapacityDialog.kt */
|
2021-06-27 20:44:35 +00:00
|
|
|
public final class m extends AppDialog {
|
2021-12-17 22:03:14 +00:00
|
|
|
public static final /* synthetic */ KProperty[] j = {c.d.b.a.a.b0(m.class, "binding", "getBinding()Lcom/discord/databinding/GuildVideoAtCapacityBinding;", 0)};
|
|
|
|
public static final a k = new a(null);
|
|
|
|
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null);
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2021-08-10 21:50:53 +00:00
|
|
|
/* compiled from: GuildVideoAtCapacityDialog.kt */
|
2021-06-27 20:44:35 +00:00
|
|
|
public static final class a {
|
|
|
|
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
|
|
|
}
|
|
|
|
|
2021-08-10 21:50:53 +00:00
|
|
|
public final void a(FragmentManager fragmentManager) {
|
2021-11-08 18:25:28 +00:00
|
|
|
d0.z.d.m.checkNotNullParameter(fragmentManager, "fragmentManager");
|
2021-08-10 21:50:53 +00:00
|
|
|
new m().show(fragmentManager, m.class.getSimpleName());
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-10 21:50:53 +00:00
|
|
|
/* compiled from: GuildVideoAtCapacityDialog.kt */
|
2021-08-27 18:41:52 +00:00
|
|
|
public static final /* synthetic */ class b extends k implements Function1<View, s> {
|
2021-12-17 22:03:14 +00:00
|
|
|
public static final b j = new b();
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2021-08-10 21:50:53 +00:00
|
|
|
public b() {
|
2021-08-27 18:41:52 +00:00
|
|
|
super(1, s.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GuildVideoAtCapacityBinding;", 0);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* 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
|
2021-08-27 18:41:52 +00:00
|
|
|
public s invoke(View view) {
|
2021-06-27 20:44:35 +00:00
|
|
|
View view2 = view;
|
2021-11-08 18:25:28 +00:00
|
|
|
d0.z.d.m.checkNotNullParameter(view2, "p1");
|
2021-12-17 22:03:14 +00:00
|
|
|
int i = R.id.guild_video_at_capacity_confirm;
|
2021-08-10 21:50:53 +00:00
|
|
|
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.guild_video_at_capacity_confirm);
|
2021-06-27 20:44:35 +00:00
|
|
|
if (materialButton != null) {
|
2021-12-17 22:03:14 +00:00
|
|
|
i = R.id.notice_header_container;
|
2021-08-10 21:50:53 +00:00
|
|
|
LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.notice_header_container);
|
|
|
|
if (linearLayout != null) {
|
2021-08-27 18:41:52 +00:00
|
|
|
return new s((LinearLayout) view2, materialButton, linearLayout);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
2021-12-17 22:03:14 +00:00
|
|
|
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i)));
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-10 21:50:53 +00:00
|
|
|
/* compiled from: GuildVideoAtCapacityDialog.kt */
|
|
|
|
public static final class c implements View.OnClickListener {
|
2021-12-17 22:03:14 +00:00
|
|
|
public final /* synthetic */ m j;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2021-08-10 21:50:53 +00:00
|
|
|
public c(m mVar) {
|
2021-12-17 22:03:14 +00:00
|
|
|
this.j = mVar;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
|
|
public final void onClick(View view) {
|
2021-12-17 22:03:14 +00:00
|
|
|
this.j.dismiss();
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public m() {
|
2021-08-10 21:50:53 +00:00
|
|
|
super(R.layout.guild_video_at_capacity);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
|
2021-08-10 21:50:53 +00:00
|
|
|
public void onResume() {
|
|
|
|
super.onResume();
|
|
|
|
requireDialog().setCanceledOnTouchOutside(true);
|
2021-12-17 22:03:14 +00:00
|
|
|
((s) this.l.getValue((Fragment) this, j[0])).b.setOnClickListener(new c(this));
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|