58 lines
2.5 KiB
Java
58 lines
2.5 KiB
Java
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.t1;
|
|
import com.discord.utilities.view.extensions.ViewExtensions;
|
|
import d0.z.d.m;
|
|
/* compiled from: FailedUploadView.kt */
|
|
public final class FailedUploadView extends ConstraintLayout {
|
|
public final t1 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(2131558730, (ViewGroup) this, false);
|
|
addView(inflate);
|
|
int i = 2131362962;
|
|
TextView textView = (TextView) inflate.findViewById(2131362962);
|
|
if (textView != null) {
|
|
i = 2131363186;
|
|
ImageView imageView = (ImageView) inflate.findViewById(2131363186);
|
|
if (imageView != null) {
|
|
i = 2131363209;
|
|
ImageView imageView2 = (ImageView) inflate.findViewById(2131363209);
|
|
if (imageView2 != null) {
|
|
i = 2131365189;
|
|
TextView textView2 = (TextView) inflate.findViewById(2131365189);
|
|
if (textView2 != null) {
|
|
t1 t1Var = new t1((ConstraintLayout) inflate, textView, imageView, imageView2, textView2);
|
|
m.checkNotNullExpressionValue(t1Var, "ViewChatUploadBinding.in…rom(context), this, true)");
|
|
this.i = t1Var;
|
|
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.f157c.setImageResource(i);
|
|
}
|
|
}
|