package com.discord.views; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.DrawableRes; import androidx.constraintlayout.widget.ConstraintLayout; import c.a.i.s1; import com.discord.utilities.view.extensions.ViewExtensions; import d0.z.d.m; /* compiled from: FailedUploadView.kt */ public final class FailedUploadView extends ConstraintLayout { public final s1 i; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public FailedUploadView(Context context, AttributeSet attributeSet) { super(context, attributeSet); m.checkNotNullParameter(context, "context"); View inflate = LayoutInflater.from(getContext()).inflate(2131558737, (ViewGroup) this, false); addView(inflate); int i = 2131362992; TextView textView = (TextView) inflate.findViewById(2131362992); if (textView != null) { i = 2131363217; ImageView imageView = (ImageView) inflate.findViewById(2131363217); if (imageView != null) { i = 2131363240; ImageView imageView2 = (ImageView) inflate.findViewById(2131363240); if (imageView2 != null) { i = 2131365256; TextView textView2 = (TextView) inflate.findViewById(2131365256); if (textView2 != null) { s1 s1Var = new s1((ConstraintLayout) inflate, textView, imageView, imageView2, textView2); m.checkNotNullExpressionValue(s1Var, "ViewChatUploadBinding.in…rom(context), this, true)"); this.i = s1Var; return; } } } } throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i))); } public final void a(CharSequence charSequence, @DrawableRes int i, String str) { m.checkNotNullParameter(charSequence, "title"); TextView textView = this.i.b; m.checkNotNullExpressionValue(textView, "binding.displayName"); textView.setText(charSequence); TextView textView2 = this.i.d; m.checkNotNullExpressionValue(textView2, "binding.subtitleText"); ViewExtensions.setTextAndVisibilityBy(textView2, str); this.i.f154c.setImageResource(i); } }