2019-12-06 03:29:40 +00:00
|
|
|
.class public Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter$ViewHolder;
|
2019-07-24 11:27:29 +00:00
|
|
|
.super Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;
|
|
|
|
.source "WidgetUserMutualFriends.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
2019-12-06 03:29:40 +00:00
|
|
|
accessFlags = 0x9
|
2019-07-24 11:27:29 +00:00
|
|
|
name = "ViewHolder"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder<",
|
|
|
|
"Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter;",
|
|
|
|
"Lcom/discord/widgets/user/WidgetUserMutualFriends$Model$Item;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public itemAvatar:Landroid/widget/ImageView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public itemGame:Lcom/discord/utilities/view/text/SimpleDraweeSpanTextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public itemMutualServers:Landroid/view/ViewGroup;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public itemName:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
.field public itemStatus:Lcom/discord/views/StatusView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(ILcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter;)V
|
2019-10-19 01:51:17 +00:00
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # I
|
|
|
|
.annotation build Landroidx/annotation/LayoutRes;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;-><init>(ILcom/discord/utilities/mg_recycler/MGRecyclerAdapter;)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-05-15 19:24:08 +00:00
|
|
|
const v0, 0x7f0a0962
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-19 01:51:17 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter$ViewHolder;->itemAvatar:Landroid/widget/ImageView;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-05-15 19:24:08 +00:00
|
|
|
const v0, 0x7f0a0968
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-19 01:51:17 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter$ViewHolder;->itemName:Landroid/widget/TextView;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-05-15 19:24:08 +00:00
|
|
|
const v0, 0x7f0a0967
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-19 01:51:17 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-10-17 03:51:45 +00:00
|
|
|
check-cast p1, Lcom/discord/utilities/view/text/SimpleDraweeSpanTextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-17 03:51:45 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter$ViewHolder;->itemGame:Lcom/discord/utilities/view/text/SimpleDraweeSpanTextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-05-15 19:24:08 +00:00
|
|
|
const v0, 0x7f0a0966
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-19 01:51:17 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
check-cast p1, Lcom/discord/views/StatusView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter$ViewHolder;->itemStatus:Lcom/discord/views/StatusView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-05-15 19:24:08 +00:00
|
|
|
const v0, 0x7f0a0963
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-19 01:51:17 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Landroid/view/ViewGroup;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter$ViewHolder;->itemMutualServers:Landroid/view/ViewGroup;
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
new-instance p1, Lf/a/m/g/m;
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-direct {p1, p2}, Lf/a/m/g/m;-><init>(Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter;)V
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
const/4 p2, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
new-array p2, p2, [Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;->setOnClickListener(Lrx/functions/Action3;[Landroid/view/View;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public static synthetic a(Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter;Landroid/view/View;Ljava/lang/Integer;Lcom/discord/widgets/user/WidgetUserMutualFriends$Model$Item;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
iget-object p1, p3, Lcom/discord/widgets/user/WidgetUserMutualFriends$Model$Item;->user:Lcom/discord/models/domain/ModelUser;
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->getId()J
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
move-result-wide p1
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2019-10-25 01:57:51 +00:00
|
|
|
invoke-static {p0}, Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter;->access$300(Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter;)Lcom/discord/app/AppFragment;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireFragmentManager()Landroidx/fragment/app/FragmentManager;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
move-result-object p0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
invoke-static {p1, p2, p0}, Lcom/discord/widgets/user/usersheet/WidgetUserSheet;->show(JLandroidx/fragment/app/FragmentManager;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onConfigure(ILcom/discord/widgets/user/WidgetUserMutualFriends$Model$Item;)V
|
2019-11-10 14:21:47 +00:00
|
|
|
.locals 5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-super {p0, p1, p2}, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;->onConfigure(ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
iget-object p1, p2, Lcom/discord/widgets/user/WidgetUserMutualFriends$Model$Item;->user:Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
iget-object v0, p2, Lcom/discord/widgets/user/WidgetUserMutualFriends$Model$Item;->presence:Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter$ViewHolder;->itemName:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->getUsername()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter$ViewHolder;->itemStatus:Lcom/discord/views/StatusView;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Lcom/discord/views/StatusView;->setPresence(Lcom/discord/models/domain/ModelPresence;)V
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
iget-object v1, p2, Lcom/discord/widgets/user/WidgetUserMutualFriends$Model$Item;->isApplicationStreaming:Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iget-object v2, p0, Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter$ViewHolder;->itemGame:Lcom/discord/utilities/view/text/SimpleDraweeSpanTextView;
|
2019-10-17 03:51:45 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
const/4 v3, 0x1
|
2019-10-17 03:51:45 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
invoke-static {v0, v1, v2, v3}, Lcom/discord/utilities/presence/PresenceUtils;->setPresenceText(Lcom/discord/models/domain/ModelPresence;ZLcom/discord/utilities/view/text/SimpleDraweeSpanTextView;Z)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter$ViewHolder;->itemAvatar:Landroid/widget/ImageView;
|
|
|
|
|
2020-02-20 23:34:33 +00:00
|
|
|
const v1, 0x7f07005c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v0, p1, v1}, Lcom/discord/utilities/icon/IconUtils;->setIcon(Landroid/widget/ImageView;Lcom/discord/models/domain/ModelUser;I)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const/4 v1, 0x4
|
|
|
|
|
|
|
|
if-ge v0, v1, :cond_3
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter$ViewHolder;->itemMutualServers:Landroid/view/ViewGroup;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-05-15 19:24:08 +00:00
|
|
|
const v2, 0x7f0a0965
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Landroid/widget/TextView;
|
|
|
|
|
2020-05-15 19:24:08 +00:00
|
|
|
const v3, 0x7f0a0964
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
const/16 v4, 0x8
|
|
|
|
|
|
|
|
invoke-virtual {v1, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
|
|
|
|
iget-object v4, p2, Lcom/discord/widgets/user/WidgetUserMutualFriends$Model$Item;->mutualGuilds:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {v4}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-ge v0, v4, :cond_0
|
|
|
|
|
|
|
|
iget-object v4, p2, Lcom/discord/widgets/user/WidgetUserMutualFriends$Model$Item;->mutualGuilds:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {v4, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
check-cast v4, Lcom/discord/models/domain/ModelGuild;
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {v1, p1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelGuild;->getIcon()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v3, p1}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
|
|
|
|
invoke-static {v3, v4}, Lcom/discord/utilities/icon/IconUtils;->setIcon(Landroid/widget/ImageView;Lcom/discord/models/domain/ModelGuild;)V
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {v2, p1}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelGuild;->getShortName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_2
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public bridge synthetic onConfigure(ILjava/lang/Object;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p2, Lcom/discord/widgets/user/WidgetUserMutualFriends$Model$Item;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/user/WidgetUserMutualFriends$MutualFriendsAdapter$ViewHolder;->onConfigure(ILcom/discord/widgets/user/WidgetUserMutualFriends$Model$Item;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|