2021-07-24 02:37:17 +00:00
|
|
|
package com.discord.views;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.res.TypedArray;
|
|
|
|
import android.util.AttributeSet;
|
|
|
|
import android.view.LayoutInflater;
|
|
|
|
import android.widget.TextView;
|
|
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
2021-07-28 07:39:21 +00:00
|
|
|
import c.a.i.c2;
|
2021-07-24 02:37:17 +00:00
|
|
|
import com.discord.R;
|
|
|
|
import com.facebook.drawee.view.SimpleDraweeView;
|
|
|
|
import d0.z.d.m;
|
|
|
|
/* compiled from: GuildView.kt */
|
|
|
|
public final class GuildView extends ConstraintLayout {
|
2021-07-28 07:39:21 +00:00
|
|
|
public final c2 i;
|
2021-07-24 02:37:17 +00:00
|
|
|
public int j;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public GuildView(Context context, AttributeSet attributeSet) {
|
|
|
|
super(context, attributeSet, 0);
|
|
|
|
m.checkNotNullParameter(context, "context");
|
2021-07-28 07:39:21 +00:00
|
|
|
LayoutInflater.from(context).inflate(2131558763, this);
|
|
|
|
int i = 2131363414;
|
|
|
|
SimpleDraweeView simpleDraweeView = (SimpleDraweeView) findViewById(2131363414);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (simpleDraweeView != null) {
|
2021-07-28 07:39:21 +00:00
|
|
|
i = 2131363553;
|
|
|
|
TextView textView = (TextView) findViewById(2131363553);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (textView != null) {
|
2021-07-28 07:39:21 +00:00
|
|
|
c2 c2Var = new c2(this, simpleDraweeView, textView);
|
|
|
|
m.checkNotNullExpressionValue(c2Var, "ViewGuildBinding.inflate…ater.from(context), this)");
|
|
|
|
this.i = c2Var;
|
2021-07-24 02:37:17 +00:00
|
|
|
this.j = -1;
|
|
|
|
setClipToOutline(true);
|
|
|
|
if (attributeSet != null) {
|
|
|
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R.a.GuildView, 0, 0);
|
|
|
|
m.checkNotNullExpressionValue(obtainStyledAttributes, "context.obtainStyledAttr…tyleable.GuildView, 0, 0)");
|
|
|
|
try {
|
|
|
|
this.j = obtainStyledAttributes.getDimensionPixelSize(0, -1);
|
|
|
|
return;
|
|
|
|
} finally {
|
|
|
|
obtainStyledAttributes.recycle();
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
throw new NullPointerException("Missing required view with ID: ".concat(getResources().getResourceName(i)));
|
|
|
|
}
|
|
|
|
}
|