2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.widgets.user;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.view.View;
|
|
|
|
import android.view.ViewGroup;
|
|
|
|
import android.widget.ImageView;
|
|
|
|
import android.widget.RelativeLayout;
|
|
|
|
import android.widget.TextView;
|
|
|
|
import androidx.annotation.LayoutRes;
|
|
|
|
import androidx.fragment.app.Fragment;
|
|
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
|
|
import c.a.d.l;
|
|
|
|
import c.d.b.a.a;
|
|
|
|
import com.discord.app.AppFragment;
|
|
|
|
import com.discord.databinding.WidgetUserMutualGuildsBinding;
|
|
|
|
import com.discord.databinding.WidgetUserProfileAdapterItemServerBinding;
|
|
|
|
import com.discord.models.domain.ModelUserProfile;
|
|
|
|
import com.discord.models.guild.Guild;
|
|
|
|
import com.discord.models.user.User;
|
|
|
|
import com.discord.stores.StoreStream;
|
|
|
|
import com.discord.utilities.icon.IconUtils;
|
|
|
|
import com.discord.utilities.images.MGImages;
|
|
|
|
import com.discord.utilities.mg_recycler.MGRecyclerAdapter;
|
|
|
|
import com.discord.utilities.mg_recycler.MGRecyclerAdapterSimple;
|
|
|
|
import com.discord.utilities.mg_recycler.MGRecyclerDataPayload;
|
|
|
|
import com.discord.utilities.mg_recycler.MGRecyclerViewHolder;
|
|
|
|
import com.discord.utilities.resources.StringResourceUtilsKt;
|
|
|
|
import com.discord.utilities.rx.ObservableExtensionsKt;
|
|
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
|
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
|
|
|
import com.discord.widgets.user.profile.WidgetUserProfileEmptyListItem;
|
|
|
|
import com.facebook.drawee.view.SimpleDraweeView;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import kotlin.jvm.functions.Function0;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
|
|
import kotlin.reflect.KProperty;
|
|
|
|
import rx.Observable;
|
|
|
|
import rx.functions.Action0;
|
|
|
|
/* compiled from: WidgetUserMutualGuilds.kt */
|
|
|
|
public final class WidgetUserMutualGuilds extends AppFragment {
|
|
|
|
public static final /* synthetic */ KProperty[] $$delegatedProperties = {a.W(WidgetUserMutualGuilds.class, "binding", "getBinding()Lcom/discord/databinding/WidgetUserMutualGuildsBinding;", 0)};
|
|
|
|
public static final Companion Companion = new Companion(null);
|
|
|
|
private Adapter adapter;
|
|
|
|
private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetUserMutualGuilds$binding$2.INSTANCE, null, 2, null);
|
|
|
|
|
|
|
|
/* compiled from: WidgetUserMutualGuilds.kt */
|
|
|
|
public static final class Adapter extends MGRecyclerAdapterSimple<Model.Item> {
|
|
|
|
private final Action0 guildSelectedCallback;
|
|
|
|
|
|
|
|
/* compiled from: WidgetUserMutualGuilds.kt */
|
|
|
|
public static final class ViewHolder extends MGRecyclerViewHolder<Adapter, Model.Item> {
|
|
|
|
private final WidgetUserProfileAdapterItemServerBinding binding;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public ViewHolder(@LayoutRes int i, Adapter adapter) {
|
|
|
|
super(i, adapter);
|
|
|
|
m.checkNotNullParameter(adapter, "adapter");
|
|
|
|
View view = this.itemView;
|
2021-07-04 15:26:29 +00:00
|
|
|
int i2 = 2131365455;
|
|
|
|
SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view.findViewById(2131365455);
|
2021-06-27 20:44:35 +00:00
|
|
|
if (simpleDraweeView != null) {
|
2021-07-04 15:26:29 +00:00
|
|
|
i2 = 2131365456;
|
|
|
|
TextView textView = (TextView) view.findViewById(2131365456);
|
2021-06-27 20:44:35 +00:00
|
|
|
if (textView != null) {
|
2021-07-04 15:26:29 +00:00
|
|
|
i2 = 2131365457;
|
|
|
|
TextView textView2 = (TextView) view.findViewById(2131365457);
|
2021-06-27 20:44:35 +00:00
|
|
|
if (textView2 != null) {
|
2021-07-04 15:26:29 +00:00
|
|
|
i2 = 2131365458;
|
|
|
|
TextView textView3 = (TextView) view.findViewById(2131365458);
|
2021-06-27 20:44:35 +00:00
|
|
|
if (textView3 != null) {
|
2021-07-04 15:26:29 +00:00
|
|
|
i2 = 2131365459;
|
|
|
|
RelativeLayout relativeLayout = (RelativeLayout) view.findViewById(2131365459);
|
2021-06-27 20:44:35 +00:00
|
|
|
if (relativeLayout != null) {
|
|
|
|
WidgetUserProfileAdapterItemServerBinding widgetUserProfileAdapterItemServerBinding = new WidgetUserProfileAdapterItemServerBinding((RelativeLayout) view, simpleDraweeView, textView, textView2, textView3, relativeLayout);
|
|
|
|
m.checkNotNullExpressionValue(widgetUserProfileAdapterItemServerBinding, "WidgetUserProfileAdapter…verBinding.bind(itemView)");
|
|
|
|
this.binding = widgetUserProfileAdapterItemServerBinding;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i2)));
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final /* synthetic */ Adapter access$getAdapter$p(ViewHolder viewHolder) {
|
|
|
|
return (Adapter) viewHolder.adapter;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void onConfigure(int i, Model.Item item) {
|
|
|
|
m.checkNotNullParameter(item, "data");
|
|
|
|
super.onConfigure(i, (int) item);
|
|
|
|
this.binding.a.setOnClickListener(new WidgetUserMutualGuilds$Adapter$ViewHolder$onConfigure$1(this, item));
|
|
|
|
SimpleDraweeView simpleDraweeView = this.binding.b;
|
|
|
|
Guild guild = item.getGuild();
|
|
|
|
String str = null;
|
|
|
|
int i2 = 0;
|
|
|
|
simpleDraweeView.setVisibility((guild != null ? guild.getIcon() : null) == null ? 8 : 0);
|
|
|
|
m.checkNotNullExpressionValue(simpleDraweeView, "this");
|
|
|
|
IconUtils.setIcon$default((ImageView) simpleDraweeView, item.getGuild(), 0, (MGImages.ChangeDetector) null, false, 28, (Object) null);
|
|
|
|
TextView textView = this.binding.e;
|
|
|
|
Guild guild2 = item.getGuild();
|
|
|
|
textView.setVisibility((guild2 != null ? guild2.getIcon() : null) == null ? 0 : 8);
|
|
|
|
Guild guild3 = item.getGuild();
|
|
|
|
textView.setText(guild3 != null ? guild3.getShortName() : null);
|
2021-07-04 15:26:29 +00:00
|
|
|
TextView textView2 = this.binding.f1996c;
|
2021-06-27 20:44:35 +00:00
|
|
|
Guild guild4 = item.getGuild();
|
|
|
|
if (guild4 != null) {
|
|
|
|
str = guild4.getName();
|
|
|
|
}
|
|
|
|
textView2.setText(str);
|
|
|
|
TextView textView3 = this.binding.d;
|
|
|
|
textView3.setText(item.getNick());
|
|
|
|
if (item.getNick() == null) {
|
|
|
|
i2 = 8;
|
|
|
|
}
|
|
|
|
textView3.setVisibility(i2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public Adapter(RecyclerView recyclerView, Action0 action0) {
|
|
|
|
super(recyclerView, false, 2, null);
|
|
|
|
m.checkNotNullParameter(recyclerView, "recyclerView");
|
|
|
|
m.checkNotNullParameter(action0, "guildSelectedCallback");
|
|
|
|
this.guildSelectedCallback = action0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final /* synthetic */ Action0 access$getGuildSelectedCallback$p(Adapter adapter) {
|
|
|
|
return adapter.guildSelectedCallback;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Adapter
|
|
|
|
public MGRecyclerViewHolder<?, Model.Item> onCreateViewHolder(ViewGroup viewGroup, int i) {
|
|
|
|
m.checkNotNullParameter(viewGroup, "parent");
|
|
|
|
if (i == 0) {
|
2021-07-04 15:26:29 +00:00
|
|
|
return new WidgetUserProfileEmptyListItem(2131559278, this, 2130969514, 2131891474);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
if (i == 1) {
|
2021-07-04 15:26:29 +00:00
|
|
|
return new ViewHolder(2131559281, this);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
throw invalidViewTypeException(i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: WidgetUserMutualGuilds.kt */
|
|
|
|
public static final class Companion {
|
|
|
|
private Companion() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
|
|
this();
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void show(Context context, long j) {
|
|
|
|
m.checkNotNullParameter(context, "context");
|
|
|
|
Intent intent = new Intent();
|
|
|
|
intent.putExtra("com.discord.intent.extra.EXTRA_USER_ID", j);
|
|
|
|
l.d(context, WidgetUserMutualGuilds.class, intent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: WidgetUserMutualGuilds.kt */
|
|
|
|
public static final class Model {
|
|
|
|
public static final Companion Companion = new Companion(null);
|
|
|
|
private final Map<Long, Guild> guilds;
|
|
|
|
private final List<Item> list;
|
|
|
|
private final int numMutualGuilds;
|
|
|
|
private final ModelUserProfile profile;
|
|
|
|
private final User user;
|
|
|
|
|
|
|
|
/* compiled from: WidgetUserMutualGuilds.kt */
|
|
|
|
public static final class Companion {
|
|
|
|
private Companion() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
|
|
this();
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Observable<Model> get(long j) {
|
|
|
|
StoreStream.Companion companion = StoreStream.Companion;
|
2021-07-03 23:36:06 +00:00
|
|
|
Observable<Model> r = Observable.i(companion.getUserProfile().observeUserProfile(j), companion.getGuildsSorted().observeOrderedGuilds(), companion.getUsers().observeUser(j), WidgetUserMutualGuilds$Model$Companion$get$1.INSTANCE).r();
|
|
|
|
m.checkNotNullExpressionValue(r, "Observable\n .… .distinctUntilChanged()");
|
|
|
|
return r;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: WidgetUserMutualGuilds.kt */
|
|
|
|
public static final class Item implements MGRecyclerDataPayload {
|
|
|
|
public static final Companion Companion = new Companion(null);
|
|
|
|
public static final int TYPE_EMPTY = 0;
|
|
|
|
public static final int TYPE_MUTUAL_SERVER = 1;
|
|
|
|
private final Guild guild;
|
|
|
|
private final String key;
|
|
|
|
private final String nick;
|
|
|
|
private final int type;
|
|
|
|
|
|
|
|
/* compiled from: WidgetUserMutualGuilds.kt */
|
|
|
|
public static final class Companion {
|
|
|
|
private Companion() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
|
|
this();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public Item(int i, Guild guild, String str) {
|
|
|
|
this.type = i;
|
|
|
|
this.guild = guild;
|
|
|
|
this.nick = str;
|
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
sb.append(String.valueOf(getType()));
|
|
|
|
sb.append(String.valueOf(guild != null ? guild.getId() : 0));
|
|
|
|
this.key = sb.toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
|
|
public /* synthetic */ Item(int i, Guild guild, String str, int i2, DefaultConstructorMarker defaultConstructorMarker) {
|
|
|
|
this((i2 & 1) != 0 ? 0 : i, guild, str);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static /* synthetic */ Item copy$default(Item item, int i, Guild guild, String str, int i2, Object obj) {
|
|
|
|
if ((i2 & 1) != 0) {
|
|
|
|
i = item.getType();
|
|
|
|
}
|
|
|
|
if ((i2 & 2) != 0) {
|
|
|
|
guild = item.guild;
|
|
|
|
}
|
|
|
|
if ((i2 & 4) != 0) {
|
|
|
|
str = item.nick;
|
|
|
|
}
|
|
|
|
return item.copy(i, guild, str);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int component1() {
|
|
|
|
return getType();
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Guild component2() {
|
|
|
|
return this.guild;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final String component3() {
|
|
|
|
return this.nick;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Item copy(int i, Guild guild, String str) {
|
|
|
|
return new Item(i, guild, str);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (this == obj) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(obj instanceof Item)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
Item item = (Item) obj;
|
|
|
|
return getType() == item.getType() && m.areEqual(this.guild, item.guild) && m.areEqual(this.nick, item.nick);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Guild getGuild() {
|
|
|
|
return this.guild;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload, com.discord.utilities.recycler.DiffKeyProvider
|
|
|
|
public String getKey() {
|
|
|
|
return this.key;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final String getNick() {
|
|
|
|
return this.nick;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload
|
|
|
|
public int getType() {
|
|
|
|
return this.type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int hashCode() {
|
|
|
|
int type = getType() * 31;
|
|
|
|
Guild guild = this.guild;
|
|
|
|
int i = 0;
|
|
|
|
int hashCode = (type + (guild != null ? guild.hashCode() : 0)) * 31;
|
|
|
|
String str = this.nick;
|
|
|
|
if (str != null) {
|
|
|
|
i = str.hashCode();
|
|
|
|
}
|
|
|
|
return hashCode + i;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
|
|
|
StringBuilder L = a.L("Item(type=");
|
|
|
|
L.append(getType());
|
|
|
|
L.append(", guild=");
|
|
|
|
L.append(this.guild);
|
|
|
|
L.append(", nick=");
|
|
|
|
return a.D(L, this.nick, ")");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public Model(ModelUserProfile modelUserProfile, Map<Long, Guild> map, User user) {
|
|
|
|
m.checkNotNullParameter(modelUserProfile, "profile");
|
|
|
|
m.checkNotNullParameter(map, "guilds");
|
|
|
|
this.profile = modelUserProfile;
|
|
|
|
this.guilds = map;
|
|
|
|
this.user = user;
|
|
|
|
this.list = new ArrayList(modelUserProfile.getMutualGuilds().size());
|
|
|
|
for (Guild guild : map.values()) {
|
|
|
|
ModelUserProfile.GuildReference guildReference = this.profile.getMutualGuilds().get(Long.valueOf(guild.getId()));
|
|
|
|
if (guildReference != null) {
|
|
|
|
this.list.add(new Item(1, guild, guildReference.getNick()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.numMutualGuilds = this.list.size();
|
|
|
|
if (this.list.isEmpty()) {
|
|
|
|
this.list.add(new Item(0, null, null));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.user.WidgetUserMutualGuilds$Model */
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
|
|
public static /* synthetic */ Model copy$default(Model model, ModelUserProfile modelUserProfile, Map map, User user, int i, Object obj) {
|
|
|
|
if ((i & 1) != 0) {
|
|
|
|
modelUserProfile = model.profile;
|
|
|
|
}
|
|
|
|
if ((i & 2) != 0) {
|
|
|
|
map = model.guilds;
|
|
|
|
}
|
|
|
|
if ((i & 4) != 0) {
|
|
|
|
user = model.user;
|
|
|
|
}
|
|
|
|
return model.copy(modelUserProfile, map, user);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final ModelUserProfile component1() {
|
|
|
|
return this.profile;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Map<Long, Guild> component2() {
|
|
|
|
return this.guilds;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final User component3() {
|
|
|
|
return this.user;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Model copy(ModelUserProfile modelUserProfile, Map<Long, Guild> map, User user) {
|
|
|
|
m.checkNotNullParameter(modelUserProfile, "profile");
|
|
|
|
m.checkNotNullParameter(map, "guilds");
|
|
|
|
return new Model(modelUserProfile, map, user);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (this == obj) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(obj instanceof Model)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
Model model = (Model) obj;
|
|
|
|
return m.areEqual(this.profile, model.profile) && m.areEqual(this.guilds, model.guilds) && m.areEqual(this.user, model.user);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Map<Long, Guild> getGuilds() {
|
|
|
|
return this.guilds;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final List<Item> getList() {
|
|
|
|
return this.list;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int getNumMutualGuilds() {
|
|
|
|
return this.numMutualGuilds;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final ModelUserProfile getProfile() {
|
|
|
|
return this.profile;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final User getUser() {
|
|
|
|
return this.user;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int hashCode() {
|
|
|
|
ModelUserProfile modelUserProfile = this.profile;
|
|
|
|
int i = 0;
|
|
|
|
int hashCode = (modelUserProfile != null ? modelUserProfile.hashCode() : 0) * 31;
|
|
|
|
Map<Long, Guild> map = this.guilds;
|
|
|
|
int hashCode2 = (hashCode + (map != null ? map.hashCode() : 0)) * 31;
|
|
|
|
User user = this.user;
|
|
|
|
if (user != null) {
|
|
|
|
i = user.hashCode();
|
|
|
|
}
|
|
|
|
return hashCode2 + i;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
|
|
|
StringBuilder L = a.L("Model(profile=");
|
|
|
|
L.append(this.profile);
|
|
|
|
L.append(", guilds=");
|
|
|
|
L.append(this.guilds);
|
|
|
|
L.append(", user=");
|
|
|
|
L.append(this.user);
|
|
|
|
L.append(")");
|
|
|
|
return L.toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public WidgetUserMutualGuilds() {
|
2021-07-04 15:26:29 +00:00
|
|
|
super(2131559274);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static final /* synthetic */ void access$configureUI(WidgetUserMutualGuilds widgetUserMutualGuilds, Model model) {
|
|
|
|
widgetUserMutualGuilds.configureUI(model);
|
|
|
|
}
|
|
|
|
|
|
|
|
private final void configureUI(Model model) {
|
|
|
|
int numMutualGuilds = model.getNumMutualGuilds();
|
2021-07-03 23:36:06 +00:00
|
|
|
setActionBarTitle(StringResourceUtilsKt.getI18nPluralString(requireContext(), 2131755354, 2131891385, Integer.valueOf(numMutualGuilds), Integer.valueOf(numMutualGuilds)));
|
2021-06-27 20:44:35 +00:00
|
|
|
User user = model.getUser();
|
|
|
|
setActionBarSubtitle(user != null ? user.getUsername() : null);
|
|
|
|
Adapter adapter = this.adapter;
|
|
|
|
if (adapter == null) {
|
|
|
|
m.throwUninitializedPropertyAccessException("adapter");
|
|
|
|
}
|
|
|
|
adapter.setData(model.getList());
|
|
|
|
}
|
|
|
|
|
|
|
|
private final WidgetUserMutualGuildsBinding getBinding() {
|
|
|
|
return (WidgetUserMutualGuildsBinding) this.binding$delegate.getValue((Fragment) this, $$delegatedProperties[0]);
|
|
|
|
}
|
|
|
|
|
|
|
|
private final long getUserId() {
|
|
|
|
return getMostRecentIntent().getLongExtra("com.discord.intent.extra.EXTRA_USER_ID", 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // com.discord.app.AppFragment
|
|
|
|
public void onViewBound(View view) {
|
|
|
|
m.checkNotNullParameter(view, "view");
|
|
|
|
super.onViewBound(view);
|
|
|
|
MGRecyclerAdapter.Companion companion = MGRecyclerAdapter.Companion;
|
|
|
|
RecyclerView recyclerView = getBinding().b;
|
|
|
|
m.checkNotNullExpressionValue(recyclerView, "binding.userMutualGuildsRecyclerView");
|
|
|
|
this.adapter = (Adapter) companion.configure(new Adapter(recyclerView, new WidgetUserMutualGuilds$onViewBound$1(this)));
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // com.discord.app.AppFragment
|
|
|
|
public void onViewBoundOrOnResume() {
|
|
|
|
super.onViewBoundOrOnResume();
|
|
|
|
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(Model.Companion.get(getUserId()), this, null, 2, null), WidgetUserMutualGuilds.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new WidgetUserMutualGuilds$onViewBoundOrOnResume$1(this), 62, (Object) null);
|
|
|
|
}
|
|
|
|
}
|