discord-jadx/app/src/main/java/com/discord/widgets/user/profile/WidgetUserProfileEmptyListItem.java
2021-07-24 04:37:17 +02:00

42 lines
2.2 KiB
Java

package com.discord.widgets.user.profile;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.AttrRes;
import androidx.annotation.LayoutRes;
import androidx.annotation.StringRes;
import com.discord.databinding.WidgetUserProfileAdapterItemEmptyBinding;
import com.discord.utilities.drawable.DrawableCompat;
import com.discord.utilities.mg_recycler.MGRecyclerAdapter;
import com.discord.utilities.mg_recycler.MGRecyclerViewHolder;
import d0.z.d.m;
/* compiled from: WidgetUserProfileEmptyListItem.kt */
public final class WidgetUserProfileEmptyListItem<T extends MGRecyclerAdapter<D>, D> extends MGRecyclerViewHolder<T, D> {
private final WidgetUserProfileAdapterItemEmptyBinding binding;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetUserProfileEmptyListItem(@LayoutRes int i, T t, @AttrRes int i2, @StringRes int i3) {
super(i, t);
m.checkNotNullParameter(t, "adapter");
View view = this.itemView;
int i4 = 2131365533;
ImageView imageView = (ImageView) view.findViewById(2131365533);
if (imageView != null) {
i4 = 2131365534;
TextView textView = (TextView) view.findViewById(2131365534);
if (textView != null) {
WidgetUserProfileAdapterItemEmptyBinding widgetUserProfileAdapterItemEmptyBinding = new WidgetUserProfileAdapterItemEmptyBinding((LinearLayout) view, imageView, textView);
m.checkNotNullExpressionValue(widgetUserProfileAdapterItemEmptyBinding, "WidgetUserProfileAdapter…ptyBinding.bind(itemView)");
this.binding = widgetUserProfileAdapterItemEmptyBinding;
View view2 = this.itemView;
m.checkNotNullExpressionValue(view2, "itemView");
imageView.setBackgroundResource(DrawableCompat.getThemedDrawableRes$default(view2, i2, 0, 2, (Object) null));
textView.setText(i3);
return;
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i4)));
}
}