2021-07-24 02:37:17 +00:00
|
|
|
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;
|
2021-07-28 07:39:21 +00:00
|
|
|
import c.a.i.u1;
|
2021-07-24 02:37:17 +00:00
|
|
|
import com.discord.utilities.view.extensions.ViewExtensions;
|
|
|
|
import d0.z.d.m;
|
|
|
|
/* compiled from: FailedUploadView.kt */
|
|
|
|
public final class FailedUploadView extends ConstraintLayout {
|
2021-07-28 07:39:21 +00:00
|
|
|
public final u1 i;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
|
|
|
/* 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");
|
2021-07-28 07:39:21 +00:00
|
|
|
View inflate = LayoutInflater.from(getContext()).inflate(2131558740, (ViewGroup) this, false);
|
2021-07-24 02:37:17 +00:00
|
|
|
addView(inflate);
|
2021-07-28 07:39:21 +00:00
|
|
|
int i = 2131362997;
|
|
|
|
TextView textView = (TextView) inflate.findViewById(2131362997);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (textView != null) {
|
2021-07-28 07:39:21 +00:00
|
|
|
i = 2131363226;
|
|
|
|
ImageView imageView = (ImageView) inflate.findViewById(2131363226);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (imageView != null) {
|
2021-07-28 07:39:21 +00:00
|
|
|
i = 2131363249;
|
|
|
|
ImageView imageView2 = (ImageView) inflate.findViewById(2131363249);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (imageView2 != null) {
|
2021-07-28 07:39:21 +00:00
|
|
|
i = 2131365278;
|
|
|
|
TextView textView2 = (TextView) inflate.findViewById(2131365278);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (textView2 != null) {
|
2021-07-28 07:39:21 +00:00
|
|
|
u1 u1Var = new u1((ConstraintLayout) inflate, textView, imageView, imageView2, textView2);
|
|
|
|
m.checkNotNullExpressionValue(u1Var, "ViewChatUploadBinding.in…rom(context), this, true)");
|
|
|
|
this.i = u1Var;
|
2021-07-24 02:37:17 +00:00
|
|
|
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);
|
2021-07-28 07:39:21 +00:00
|
|
|
this.i.f167c.setImageResource(i);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|