1432 lines
46 KiB
Smali
1432 lines
46 KiB
Smali
.class public final Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;
|
|
.super Lcom/discord/app/AppBottomSheet;
|
|
.source "WidgetGuildProfileSheet.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$BaseEmojiViewHolder;,
|
|
Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$EmojiViewHolder;,
|
|
Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$MoreEmojiViewHolder;,
|
|
Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$AdapterItem;,
|
|
Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$EmojiViewAdapter;,
|
|
Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$Companion;
|
|
|
|
.field public static final NUM_ROWS_EMOJIS:I = 0x2
|
|
|
|
|
|
# instance fields
|
|
.field public final adapter:Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$EmojiViewAdapter;
|
|
|
|
.field public final emojiView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final guildDescription$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final guildIcon$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final guildName$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final memberCountTextView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final onlineCount$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final premiumUpsellEmojis$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final premiumUpsellText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final splashIv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final verifiedPartneredIcon$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final viewGuildButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 6
|
|
|
|
const/16 v0, 0xb
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v1, Ly/u/b/u;
|
|
|
|
const-class v2, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;
|
|
|
|
invoke-static {v2}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "splashIv"
|
|
|
|
const-string v4, "getSplashIv()Landroid/widget/ImageView;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v2, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v2, v1}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "guildIcon"
|
|
|
|
const-string v5, "getGuildIcon()Landroid/widget/ImageView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "onlineCount"
|
|
|
|
const-string v5, "getOnlineCount()Lcom/discord/app/AppTextView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x3
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "memberCountTextView"
|
|
|
|
const-string v5, "getMemberCountTextView()Lcom/discord/app/AppTextView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x4
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "guildName"
|
|
|
|
const-string v5, "getGuildName()Landroid/widget/TextView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x5
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "guildDescription"
|
|
|
|
const-string v5, "getGuildDescription()Landroid/widget/TextView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x6
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "viewGuildButton"
|
|
|
|
const-string v5, "getViewGuildButton()Landroid/widget/Button;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x7
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "emojiView"
|
|
|
|
const-string v5, "getEmojiView()Landroidx/recyclerview/widget/RecyclerView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/16 v1, 0x8
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "premiumUpsellText"
|
|
|
|
const-string v5, "getPremiumUpsellText()Landroid/view/ViewGroup;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/16 v1, 0x9
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "premiumUpsellEmojis"
|
|
|
|
const-string v5, "getPremiumUpsellEmojis()Landroid/view/ViewGroup;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/16 v1, 0xa
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "verifiedPartneredIcon"
|
|
|
|
const-string v5, "getVerifiedPartneredIcon()Landroid/widget/ImageView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
sput-object v0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->Companion:Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppBottomSheet;-><init>()V
|
|
|
|
const v0, 0x7f0a03e4
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->splashIv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a03cf
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->guildIcon$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a03dc
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->onlineCount$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a03d7
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->memberCountTextView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a03d9
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->guildName$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a03c6
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->guildDescription$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a03e7
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->viewGuildButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a03c9
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->emojiView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a03e0
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->premiumUpsellText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a03df
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->premiumUpsellEmojis$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a03cd
|
|
|
|
invoke-static {p0, v0}, Lz/a/a2/w;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->verifiedPartneredIcon$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
new-instance v0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$EmojiViewAdapter;
|
|
|
|
invoke-direct {v0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$EmojiViewAdapter;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->adapter:Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$EmojiViewAdapter;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;Lcom/discord/stores/StoreGuildProfiles$GuildProfileData;Lcom/discord/models/domain/ModelUser;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->configureUI(Lcom/discord/stores/StoreGuildProfiles$GuildProfileData;Lcom/discord/models/domain/ModelUser;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final configureEmojis(Ljava/util/List;Lcom/discord/models/domain/ModelUser;)V
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/discord/models/domain/emoji/ModelEmojiCustom;",
|
|
">;",
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/discord/app/AppBottomSheet;->getArgumentsOrDefault()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "com.discord.intent.extra.EXTRA_GUILD_ID"
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-virtual {p0}, Lcom/discord/app/AppBottomSheet;->getArgumentsOrDefault()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "com.discord.intent.extra.EXTRA_CHANNEL_ID"
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v6
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getEmojiView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
move-result-object p1
|
|
|
|
const/16 p2, 0x8
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/ViewGroup;->setVisibility(I)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getEmojiView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroidx/recyclerview/widget/RecyclerView;->getLayoutManager()Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
check-cast v1, Landroidx/recyclerview/widget/GridLayoutManager;
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->maxEmojisPerRow()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v2}, Landroidx/recyclerview/widget/GridLayoutManager;->setSpanCount(I)V
|
|
|
|
mul-int/lit8 v2, v2, 0x2
|
|
|
|
invoke-static {p1, v2}, Ly/q/l;->take(Ljava/lang/Iterable;I)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/discord/models/domain/emoji/ModelEmojiCustom;
|
|
|
|
new-instance v8, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$AdapterItem$EmojiItem;
|
|
|
|
invoke-direct {v8, v3}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$AdapterItem$EmojiItem;-><init>(Lcom/discord/models/domain/emoji/ModelEmojiCustom;)V
|
|
|
|
invoke-interface {v1, v8}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr v0, p1
|
|
|
|
if-lez v0, :cond_4
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result p1
|
|
|
|
if-ne p1, v2, :cond_2
|
|
|
|
invoke-static {v1}, Le/k/a/c/e/p/g;->getLastIndex(Ljava/util/List;)I
|
|
|
|
move-result p1
|
|
|
|
invoke-interface {v1, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
:cond_2
|
|
new-instance p1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$AdapterItem$MoreEmojiAdapterItem;
|
|
|
|
const/16 v2, 0x63
|
|
|
|
if-le v0, v2, :cond_3
|
|
|
|
const/16 v0, 0x63
|
|
|
|
:cond_3
|
|
invoke-direct {p1, v0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$AdapterItem$MoreEmojiAdapterItem;-><init>(I)V
|
|
|
|
invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_4
|
|
iget-object p1, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->adapter:Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$EmojiViewAdapter;
|
|
|
|
invoke-virtual {p1, v1}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$EmojiViewAdapter;->setData(Ljava/util/List;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getViewGuildButton()Landroid/widget/Button;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$configureEmojis$1;
|
|
|
|
move-object v2, v0
|
|
|
|
move-object v3, p0
|
|
|
|
invoke-direct/range {v2 .. v7}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$configureEmojis$1;-><init>(Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;JJ)V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelUser;->isPremium()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_5
|
|
|
|
new-instance p1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$configureEmojis$premiumOnClick$1;
|
|
|
|
invoke-direct {p1, p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$configureEmojis$premiumOnClick$1;-><init>(Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getPremiumUpsellText()Landroid/view/ViewGroup;
|
|
|
|
move-result-object p2
|
|
|
|
new-instance v0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$sam$android_view_View_OnClickListener$0;
|
|
|
|
invoke-direct {v0, p1}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$sam$android_view_View_OnClickListener$0;-><init>(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
invoke-virtual {p2, v0}, Landroid/view/ViewGroup;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getPremiumUpsellEmojis()Landroid/view/ViewGroup;
|
|
|
|
move-result-object p2
|
|
|
|
new-instance v0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$sam$android_view_View_OnClickListener$0;
|
|
|
|
invoke-direct {v0, p1}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$sam$android_view_View_OnClickListener$0;-><init>(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
invoke-virtual {p2, v0}, Landroid/view/ViewGroup;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
:cond_5
|
|
return-void
|
|
|
|
:cond_6
|
|
new-instance p1, Ly/l;
|
|
|
|
const-string p2, "null cannot be cast to non-null type androidx.recyclerview.widget.GridLayoutManager"
|
|
|
|
invoke-direct {p1, p2}, Ly/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private final configureUI(Lcom/discord/stores/StoreGuildProfiles$GuildProfileData;Lcom/discord/models/domain/ModelUser;)V
|
|
.locals 18
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
if-eqz p1, :cond_7
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/stores/StoreGuildProfiles$GuildProfileData;->getData()Lcom/discord/models/domain/ModelGuildPreview;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuildPreview;->getId()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuildPreview;->getIcon()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
const v3, 0x7f07005e
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v2}, Lcom/discord/utilities/icon/IconUtils;->getMediaProxySize(I)I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v8
|
|
|
|
const/16 v9, 0xc
|
|
|
|
const/4 v10, 0x0
|
|
|
|
invoke-static/range {v4 .. v10}, Lcom/discord/utilities/icon/IconUtils;->getForGuild$default(Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/Integer;ILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getGuildIcon()Landroid/widget/ImageView;
|
|
|
|
move-result-object v11
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
const/16 v16, 0x1c
|
|
|
|
const/16 v17, 0x0
|
|
|
|
invoke-static/range {v11 .. v17}, Lcom/discord/utilities/icon/IconUtils;->setIcon$default(Landroid/widget/ImageView;Ljava/lang/String;ILkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuildPreview;->getSplash()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "requireContext()"
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getSplashIv()Landroid/widget/ImageView;
|
|
|
|
move-result-object v6
|
|
|
|
sget-object v7, Lcom/discord/utilities/icon/IconUtils;->INSTANCE:Lcom/discord/utilities/icon/IconUtils;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuildPreview;->getId()J
|
|
|
|
move-result-wide v8
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
move-result-object v10
|
|
|
|
if-eqz v10, :cond_0
|
|
|
|
invoke-virtual {v10}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;
|
|
|
|
move-result-object v10
|
|
|
|
if-eqz v10, :cond_0
|
|
|
|
invoke-static {v10}, Lcom/discord/utilities/dimen/DimenUtils;->getScreenWidthPx(Landroid/view/WindowManager;)I
|
|
|
|
move-result v4
|
|
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v4
|
|
|
|
:cond_0
|
|
invoke-virtual {v7, v8, v9, v2, v4}, Lcom/discord/utilities/icon/IconUtils;->getGuildSplashUrl(JLjava/lang/String;Ljava/lang/Integer;)Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/16 v13, 0x7c
|
|
|
|
const/4 v14, 0x0
|
|
|
|
invoke-static/range {v6 .. v14}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getSplashIv()Landroid/widget/ImageView;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-static {v6, v3}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const v7, 0x7f0402a5
|
|
|
|
const/4 v8, 0x2
|
|
|
|
invoke-static {v6, v7, v5, v8, v4}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/content/Context;IIILjava/lang/Object;)I
|
|
|
|
move-result v6
|
|
|
|
const/4 v7, 0x4
|
|
|
|
invoke-static {v2, v6, v4, v7, v4}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;ILcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
|
|
:goto_0
|
|
sget-object v2, Lcom/discord/models/domain/ModelGuild;->FEATURE_VERIFIED_SERVER:Ljava/lang/Integer;
|
|
|
|
const-string v4, "ModelGuild.FEATURE_VERIFIED_SERVER"
|
|
|
|
invoke-static {v2, v4}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/models/domain/ModelGuildPreview;->hasFeature(I)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getVerifiedPartneredIcon()Landroid/widget/ImageView;
|
|
|
|
move-result-object v2
|
|
|
|
const v4, 0x7f08043a
|
|
|
|
invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getVerifiedPartneredIcon()Landroid/widget/ImageView;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v5}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
sget-object v2, Lcom/discord/models/domain/ModelGuild;->FEATURE_PARTNERED:Ljava/lang/Integer;
|
|
|
|
const-string v4, "ModelGuild.FEATURE_PARTNERED"
|
|
|
|
invoke-static {v2, v4}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/models/domain/ModelGuildPreview;->hasFeature(I)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getVerifiedPartneredIcon()Landroid/widget/ImageView;
|
|
|
|
move-result-object v2
|
|
|
|
const v4, 0x7f080382
|
|
|
|
invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getVerifiedPartneredIcon()Landroid/widget/ImageView;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v5}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getVerifiedPartneredIcon()Landroid/widget/ImageView;
|
|
|
|
move-result-object v2
|
|
|
|
const/16 v4, 0x8
|
|
|
|
invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
:goto_1
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getGuildName()Landroid/widget/TextView;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuildPreview;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getGuildDescription()Landroid/widget/TextView;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuildPreview;->getDescription()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuildPreview;->getApproximatePresenceCount()Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getOnlineCount()Lcom/discord/app/AppTextView;
|
|
|
|
move-result-object v4
|
|
|
|
const v6, 0x7f120b1f
|
|
|
|
const/4 v7, 0x1
|
|
|
|
new-array v8, v7, [Ljava/lang/Object;
|
|
|
|
sget-object v9, Lcom/discord/utilities/StringUtils;->INSTANCE:Lcom/discord/utilities/StringUtils;
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getOnlineCount()Lcom/discord/app/AppTextView;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-virtual {v10}, Landroid/widget/TextView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v10
|
|
|
|
const-string v11, "onlineCount.context"
|
|
|
|
invoke-static {v10, v11}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const/4 v2, 0x0
|
|
|
|
:goto_2
|
|
invoke-virtual {v9, v10, v2}, Lcom/discord/utilities/StringUtils;->formatNumber(Landroid/content/Context;I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v8, v5
|
|
|
|
invoke-virtual {v0, v6, v8}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
new-array v6, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v4, v2, v6}, Lcom/discord/app/AppTextView;->a(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuildPreview;->getApproximateMemberCount()Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getMemberCountTextView()Lcom/discord/app/AppTextView;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v8, "resources"
|
|
|
|
invoke-static {v6, v8}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-static {v8, v3}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const v3, 0x7f10008b
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v9
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
const/4 v9, 0x0
|
|
|
|
:goto_3
|
|
new-array v10, v7, [Ljava/lang/Object;
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
goto :goto_4
|
|
|
|
:cond_6
|
|
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
:goto_4
|
|
aput-object v2, v10, v5
|
|
|
|
invoke-static {v6, v8, v3, v9, v10}, Lcom/discord/utilities/resources/StringResourceUtilsKt;->getQuantityString(Landroid/content/res/Resources;Landroid/content/Context;II[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const v3, 0x7f120b20
|
|
|
|
new-array v6, v7, [Ljava/lang/Object;
|
|
|
|
aput-object v2, v6, v5
|
|
|
|
invoke-virtual {v0, v3, v6}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
new-array v3, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v4, v2, v3}, Lcom/discord/app/AppTextView;->a(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuildPreview;->getEmojis()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
move-object/from16 v2, p2
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->configureEmojis(Ljava/util/List;Lcom/discord/models/domain/ModelUser;)V
|
|
|
|
:cond_7
|
|
return-void
|
|
.end method
|
|
|
|
.method private final getEmojiView()Landroidx/recyclerview/widget/RecyclerView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->emojiView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x7
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getGuildDescription()Landroid/widget/TextView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->guildDescription$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x5
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getGuildIcon()Landroid/widget/ImageView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->guildIcon$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/ImageView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getGuildName()Landroid/widget/TextView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->guildName$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x4
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getMemberCountTextView()Lcom/discord/app/AppTextView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->memberCountTextView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x3
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/discord/app/AppTextView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getOnlineCount()Lcom/discord/app/AppTextView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->onlineCount$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x2
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/discord/app/AppTextView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getPremiumUpsellEmojis()Landroid/view/ViewGroup;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->premiumUpsellEmojis$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/16 v2, 0x9
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getPremiumUpsellText()Landroid/view/ViewGroup;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->premiumUpsellText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/16 v2, 0x8
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getSplashIv()Landroid/widget/ImageView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->splashIv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/ImageView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getVerifiedPartneredIcon()Landroid/widget/ImageView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->verifiedPartneredIcon$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/16 v2, 0xa
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/ImageView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getViewGuildButton()Landroid/widget/Button;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->viewGuildButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x6
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/Button;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final maxEmojisPerRow()I
|
|
.locals 4
|
|
|
|
invoke-virtual {p0}, Lcom/discord/app/AppBottomSheet;->getAppActivity()Lcom/discord/app/AppActivity;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-static {v0}, Lcom/discord/utilities/dimen/DimenUtils;->getScreenWidthPx(Landroid/view/WindowManager;)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
const v2, 0x7f0700c6
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v1
|
|
|
|
mul-int/lit8 v1, v1, 0x2
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
const v3, 0x7f0700b7
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
div-int/2addr v0, v2
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final show(JLandroidx/fragment/app/FragmentManager;)V
|
|
.locals 7
|
|
|
|
sget-object v0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->Companion:Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$Companion;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v5, 0x2
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-wide v1, p0
|
|
|
|
move-object v4, p2
|
|
|
|
invoke-static/range {v0 .. v6}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$Companion;->show$default(Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$Companion;JLjava/lang/Long;Landroidx/fragment/app/FragmentManager;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final show(JLjava/lang/Long;Landroidx/fragment/app/FragmentManager;)V
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->Companion:Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$Companion;
|
|
|
|
invoke-virtual {v0, p0, p1, p2, p3}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$Companion;->show(JLjava/lang/Long;Landroidx/fragment/app/FragmentManager;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getContentViewResId()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0d01ac
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
|
|
.locals 10
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-super {p0, p1, p2}, Lcom/discord/app/AppBottomSheet;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
|
|
|
|
invoke-virtual {p0}, Lcom/discord/app/AppBottomSheet;->getArgumentsOrDefault()Landroid/os/Bundle;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "com.discord.intent.extra.EXTRA_GUILD_ID"
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Bundle;->getLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide p1
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getEmojiView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->adapter:Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$EmojiViewAdapter;
|
|
|
|
invoke-virtual {v1, v2}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;->getEmojiView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {v1, v2}, Landroidx/recyclerview/widget/RecyclerView;->setHasFixedSize(Z)V
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getGuildProfiles()Lcom/discord/stores/StoreGuildProfiles;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, p1, p2}, Lcom/discord/stores/StoreGuildProfiles;->getGuildProfile(J)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object p2, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {p2}, Lcom/discord/stores/StoreStream$Companion;->getUsers()Lcom/discord/stores/StoreUser;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Lcom/discord/stores/StoreUser;->observeMe()Lrx/Observable;
|
|
|
|
move-result-object p2
|
|
|
|
sget-object v1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$onViewCreated$1;->INSTANCE:Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$onViewCreated$1;
|
|
|
|
invoke-static {p1, p2, v1}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "Observable\n .comb\u2026 Pair(guildProfile, me) }"
|
|
|
|
invoke-static {p1, p2}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 p2, 0x2
|
|
|
|
invoke-static {p1, p0, v0, p2, v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
const-class v2, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
new-instance v7, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$onViewCreated$2;
|
|
|
|
invoke-direct {v7, p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet$onViewCreated$2;-><init>(Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheet;)V
|
|
|
|
const/16 v8, 0x1e
|
|
|
|
const/4 v9, 0x0
|
|
|
|
invoke-static/range {v1 .. v9}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "view"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|