discord-jadx/app/src/main/java/com/discord/views/FailedUploadView.java

59 lines
2.5 KiB
Java
Raw Normal View History

2021-06-27 20:44:35 +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-13 20:23:20 +00:00
import c.a.i.s1;
2021-06-27 20:44:35 +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-13 20:23:20 +00:00
public final s1 i;
2021-06-27 20:44:35 +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-19 19:45:22 +00:00
View inflate = LayoutInflater.from(getContext()).inflate(2131558737, (ViewGroup) this, false);
2021-06-27 20:44:35 +00:00
addView(inflate);
2021-07-13 20:23:20 +00:00
int i = 2131362992;
TextView textView = (TextView) inflate.findViewById(2131362992);
2021-06-27 20:44:35 +00:00
if (textView != null) {
2021-07-19 19:45:22 +00:00
i = 2131363217;
ImageView imageView = (ImageView) inflate.findViewById(2131363217);
2021-06-27 20:44:35 +00:00
if (imageView != null) {
2021-07-19 19:45:22 +00:00
i = 2131363240;
ImageView imageView2 = (ImageView) inflate.findViewById(2131363240);
2021-06-27 20:44:35 +00:00
if (imageView2 != null) {
2021-07-20 00:17:12 +00:00
i = 2131365256;
TextView textView2 = (TextView) inflate.findViewById(2131365256);
2021-06-27 20:44:35 +00:00
if (textView2 != null) {
2021-07-13 20:23:20 +00:00
s1 s1Var = new s1((ConstraintLayout) inflate, textView, imageView, imageView2, textView2);
m.checkNotNullExpressionValue(s1Var, "ViewChatUploadBinding.in…rom(context), this, true)");
this.i = s1Var;
2021-06-27 20:44:35 +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-19 19:45:22 +00:00
this.i.f154c.setImageResource(i);
2021-06-27 20:44:35 +00:00
}
}