discord-jadx/app/src/main/java/com/discord/widgets/friends/EmptyFriendsStateView.java

68 lines
3.4 KiB
Java

package com.discord.widgets.friends;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.discord.R;
import com.discord.databinding.EmptyFriendsStateViewBinding;
import d0.z.d.m;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: EmptyFriendsStateView.kt */
public final class EmptyFriendsStateView extends ConstraintLayout {
private final EmptyFriendsStateViewBinding binding;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public EmptyFriendsStateView(Context context) {
super(context);
m.checkNotNullParameter(context, "context");
EmptyFriendsStateViewBinding a = EmptyFriendsStateViewBinding.a(LayoutInflater.from(getContext()), this);
m.checkNotNullExpressionValue(a, "EmptyFriendsStateViewBin…ater.from(context), this)");
this.binding = a;
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public EmptyFriendsStateView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
m.checkNotNullParameter(context, "context");
EmptyFriendsStateViewBinding a = EmptyFriendsStateViewBinding.a(LayoutInflater.from(getContext()), this);
m.checkNotNullExpressionValue(a, "EmptyFriendsStateViewBin…ater.from(context), this)");
this.binding = a;
initialize(attributeSet);
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public EmptyFriendsStateView(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
m.checkNotNullParameter(context, "context");
EmptyFriendsStateViewBinding a = EmptyFriendsStateViewBinding.a(LayoutInflater.from(getContext()), this);
m.checkNotNullExpressionValue(a, "EmptyFriendsStateViewBin…ater.from(context), this)");
this.binding = a;
initialize(attributeSet);
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ EmptyFriendsStateView(Context context, AttributeSet attributeSet, int i, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this(context, (i2 & 2) != 0 ? null : attributeSet, (i2 & 4) != 0 ? 0 : i);
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ EmptyFriendsStateView(Context context, AttributeSet attributeSet, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(context, (i & 2) != 0 ? null : attributeSet);
}
public final void initialize(AttributeSet attributeSet) {
TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, R.a.EmptyFriendsStateView);
m.checkNotNullExpressionValue(obtainStyledAttributes, "context.obtainStyledAttr…le.EmptyFriendsStateView)");
int resourceId = obtainStyledAttributes.getResourceId(0, 2131165778);
obtainStyledAttributes.recycle();
this.binding.f1604c.setTextSize(0, getResources().getDimension(resourceId));
}
public final void updateView(String str) {
m.checkNotNullParameter(str, "addFriendSource");
this.binding.b.setOnClickListener(new EmptyFriendsStateView$updateView$1(this, str));
}
}