2021-12-21 23:37:30 +00:00
|
|
|
package b.a.a;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.view.View;
|
|
|
|
import android.widget.LinearLayout;
|
|
|
|
import android.widget.TextView;
|
|
|
|
import androidx.fragment.app.Fragment;
|
|
|
|
import androidx.fragment.app.FragmentManager;
|
2021-12-21 23:37:30 +00:00
|
|
|
import b.a.i.e;
|
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;
|
|
|
|
import d0.z.d.m;
|
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: CameraCapacityDialog.kt */
|
2022-03-02 20:59:20 +00:00
|
|
|
/* loaded from: classes.dex */
|
2021-06-27 20:44:35 +00:00
|
|
|
public final class j extends AppDialog {
|
2021-12-21 23:37:30 +00:00
|
|
|
public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(j.class, "binding", "getBinding()Lcom/discord/databinding/CameraCapacityDialogBinding;", 0)};
|
2021-12-17 22:03:14 +00:00
|
|
|
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: CameraCapacityDialog.kt */
|
2022-03-02 20:59:20 +00:00
|
|
|
/* loaded from: classes.dex */
|
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, int i) {
|
2021-06-27 20:44:35 +00:00
|
|
|
m.checkNotNullParameter(fragmentManager, "fragmentManager");
|
|
|
|
Bundle bundle = new Bundle();
|
2021-08-10 21:50:53 +00:00
|
|
|
bundle.putInt("ARG_MAX_VIDEO_CHANNEL_USERS", i);
|
|
|
|
j jVar = new j();
|
2021-06-27 20:44:35 +00:00
|
|
|
jVar.setArguments(bundle);
|
2021-08-10 21:50:53 +00:00
|
|
|
jVar.show(fragmentManager, j.class.getSimpleName());
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-10 21:50:53 +00:00
|
|
|
/* compiled from: CameraCapacityDialog.kt */
|
2022-03-02 20:59:20 +00:00
|
|
|
/* loaded from: classes.dex */
|
2021-08-10 21:50:53 +00:00
|
|
|
public static final /* synthetic */ class b extends k implements Function1<View, e> {
|
2021-12-17 22:03:14 +00:00
|
|
|
public static final b j = new b();
|
2021-06-27 20:44:35 +00:00
|
|
|
|
|
|
|
public b() {
|
2021-08-10 21:50:53 +00:00
|
|
|
super(1, e.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/CameraCapacityDialogBinding;", 0);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
2021-08-10 21:50:53 +00:00
|
|
|
public e invoke(View view) {
|
2021-06-27 20:44:35 +00:00
|
|
|
View view2 = view;
|
|
|
|
m.checkNotNullParameter(view2, "p1");
|
2021-12-17 22:03:14 +00:00
|
|
|
int i = R.id.camera_capacity_body;
|
2021-08-10 21:50:53 +00:00
|
|
|
TextView textView = (TextView) view2.findViewById(R.id.camera_capacity_body);
|
|
|
|
if (textView != null) {
|
2021-12-17 22:03:14 +00:00
|
|
|
i = R.id.camera_capacity_confirm;
|
2021-08-10 21:50:53 +00:00
|
|
|
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.camera_capacity_confirm);
|
|
|
|
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) {
|
|
|
|
return new e((LinearLayout) view2, textView, 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: CameraCapacityDialog.kt */
|
2022-03-02 20:59:20 +00:00
|
|
|
/* loaded from: classes.dex */
|
2021-08-10 21:50:53 +00:00
|
|
|
public static final class c implements View.OnClickListener {
|
2022-03-02 20:59:20 +00:00
|
|
|
public c() {
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
|
|
public final void onClick(View view) {
|
2022-03-02 20:59:20 +00:00
|
|
|
j.this.dismiss();
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public j() {
|
2021-08-10 21:50:53 +00:00
|
|
|
super(R.layout.camera_capacity_dialog);
|
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
|
|
|
FragmentViewBindingDelegate fragmentViewBindingDelegate = this.l;
|
|
|
|
KProperty<?>[] kPropertyArr = j;
|
2022-03-02 20:59:20 +00:00
|
|
|
((e) fragmentViewBindingDelegate.getValue((Fragment) this, kPropertyArr[0])).c.setOnClickListener(new c());
|
2021-06-27 20:44:35 +00:00
|
|
|
Bundle arguments = getArguments();
|
2021-08-10 21:50:53 +00:00
|
|
|
Integer valueOf = arguments != null ? Integer.valueOf(arguments.getInt("ARG_MAX_VIDEO_CHANNEL_USERS")) : null;
|
2022-03-15 17:00:47 +00:00
|
|
|
TextView textView = ((e) this.l.getValue((Fragment) this, kPropertyArr[0])).f102b;
|
2021-08-10 21:50:53 +00:00
|
|
|
m.checkNotNullExpressionValue(textView, "binding.cameraCapacityBody");
|
2021-12-21 23:37:30 +00:00
|
|
|
textView.setText(b.a.k.b.k(this, R.string.video_capacity_modal_body, new Object[]{String.valueOf(valueOf)}, null, 4));
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|