discord-jadx/app/src/main/java/c/a/a/i.java

103 lines
4.3 KiB
Java

package c.a.a;
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;
import c.a.i.e;
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.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: CameraCapacityDialog.kt */
public final class i extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.W(i.class, "binding", "getBinding()Lcom/discord/databinding/CameraCapacityDialogBinding;", 0)};
public static final a j = new a(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
/* compiled from: CameraCapacityDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
public final void a(FragmentManager fragmentManager, int i) {
m.checkNotNullParameter(fragmentManager, "fragmentManager");
Bundle bundle = new Bundle();
bundle.putInt("ARG_MAX_VIDEO_CHANNEL_USERS", i);
i iVar = new i();
iVar.setArguments(bundle);
iVar.show(fragmentManager, i.class.getSimpleName());
}
}
/* compiled from: CameraCapacityDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, e> {
public static final b i = new b();
public b() {
super(1, e.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/CameraCapacityDialogBinding;", 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 e invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131362207;
TextView textView = (TextView) view2.findViewById(2131362207);
if (textView != null) {
i2 = 2131362208;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131362208);
if (materialButton != null) {
i2 = 2131364030;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131364030);
if (linearLayout != null) {
return new e((LinearLayout) view2, textView, materialButton, linearLayout);
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: CameraCapacityDialog.kt */
public static final class c implements View.OnClickListener {
public final /* synthetic */ i i;
public c(i iVar) {
this.i = iVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.i.dismiss();
}
}
public i() {
super(2131558438);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
public void onResume() {
super.onResume();
requireDialog().setCanceledOnTouchOutside(true);
FragmentViewBindingDelegate fragmentViewBindingDelegate = this.k;
KProperty<?>[] kPropertyArr = i;
((e) fragmentViewBindingDelegate.getValue((Fragment) this, kPropertyArr[0])).f83c.setOnClickListener(new c(this));
Bundle arguments = getArguments();
Integer valueOf = arguments != null ? Integer.valueOf(arguments.getInt("ARG_MAX_VIDEO_CHANNEL_USERS")) : null;
TextView textView = ((e) this.k.getValue((Fragment) this, kPropertyArr[0])).b;
m.checkNotNullExpressionValue(textView, "binding.cameraCapacityBody");
textView.setText(c.a.l.b.j(this, 2131894478, new Object[]{String.valueOf(valueOf)}, null, 4));
}
}