2019-07-24 11:27:29 +00:00
|
|
|
.class public final Lcom/discord/widgets/user/WidgetUserProfileHeader;
|
|
|
|
.super Lcom/discord/app/AppFragment;
|
|
|
|
.source "WidgetUserProfileHeader.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private final imagesChangeDetector:Lcom/discord/utilities/images/MGImages$DistinctChangeDetector;
|
|
|
|
|
|
|
|
.field private final userAvatar$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final userBadgeText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final userBadgeWrapOuter$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final userBadgesWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final userName$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final userPresenceView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final userStatusView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
const/4 v0, 0x7
|
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/user/WidgetUserProfileHeader;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "userAvatar"
|
|
|
|
|
|
|
|
const-string v4, "getUserAvatar()Landroid/widget/ImageView;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/user/WidgetUserProfileHeader;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "userPresenceView"
|
|
|
|
|
|
|
|
const-string v4, "getUserPresenceView()Lcom/facebook/drawee/view/SimpleDraweeView;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/user/WidgetUserProfileHeader;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "userStatusView"
|
|
|
|
|
|
|
|
const-string v4, "getUserStatusView()Landroid/widget/TextView;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/user/WidgetUserProfileHeader;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "userName"
|
|
|
|
|
|
|
|
const-string v4, "getUserName()Landroid/widget/TextView;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/user/WidgetUserProfileHeader;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "userBadgeWrapOuter"
|
|
|
|
|
|
|
|
const-string v4, "getUserBadgeWrapOuter()Landroid/view/View;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x4
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/user/WidgetUserProfileHeader;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "userBadgesWrap"
|
|
|
|
|
|
|
|
const-string v4, "getUserBadgesWrap()Landroid/view/ViewGroup;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x5
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/user/WidgetUserProfileHeader;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "userBadgeText"
|
|
|
|
|
|
|
|
const-string v4, "getUserBadgeText()Landroid/widget/TextView;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x6
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v0, 0x7f0a0531
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->userAvatar$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v0, 0x7f0a0536
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->userPresenceView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v0, 0x7f0a0530
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->userStatusView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v0, 0x7f0a0537
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->userName$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v0, 0x7f0a0535
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->userBadgeWrapOuter$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v0, 0x7f0a07a9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->userBadgesWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v0, 0x7f0a0533
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->userBadgeText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/utilities/images/MGImages$DistinctChangeDetector;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lcom/discord/utilities/images/MGImages$DistinctChangeDetector;-><init>()V
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->imagesChangeDetector:Lcom/discord/utilities/images/MGImages$DistinctChangeDetector;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/user/WidgetUserProfileHeader;Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->configureUI(Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureUI(Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;)V
|
|
|
|
.locals 20
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getUserAvatar()Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelUser;->getAvatar()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->getDiscriminator()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const/4 v8, 0x1
|
|
|
|
|
|
|
|
invoke-static {v2, v3, v4, v8}, Lcom/discord/utilities/icon/IconUtils;->getForUser(Ljava/lang/Long;Ljava/lang/String;Ljava/lang/Integer;Z)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const v3, 0x7f070056
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
iget-object v5, v0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->imagesChangeDetector:Lcom/discord/utilities/images/MGImages$DistinctChangeDetector;
|
|
|
|
|
|
|
|
check-cast v5, Lcom/discord/utilities/images/MGImages$ChangeDetector;
|
|
|
|
|
|
|
|
const/16 v6, 0x8
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v7}, 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/range {p1 .. p1}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;->getProfile()Lcom/discord/models/domain/ModelUserProfile;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;->getHypeSquadEventWinner()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;->isMeUserPremium()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, v2, v3}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getUserBadgeInfo(Lcom/discord/models/domain/ModelUserProfile;IZ)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
invoke-static {v1}, Lkotlin/a/m;->ac(Ljava/util/List;)Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;
|
|
|
|
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
const/16 v16, 0x3f
|
|
|
|
|
|
|
|
const/16 v17, 0x0
|
|
|
|
|
|
|
|
move-object v9, v2
|
|
|
|
|
|
|
|
invoke-direct/range {v9 .. v17}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;-><init>(IILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getUserName()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v6, 0x7f04028f
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v5, v6}, Lcom/discord/utilities/color/ColorCompat;->getThemedColor(Landroid/content/Context;I)I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
invoke-virtual {v4, v5}, Lcom/discord/models/domain/ModelUser;->getUserNameWithDiscriminator(I)Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getUserBadgeText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;->getText()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
check-cast v4, Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getUserBadgeText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;->getTextColor()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getUserBadgeText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
if-ne v4, v8, :cond_2
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const/4 v6, 0x2
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
invoke-static {v3, v4, v5, v6, v7}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getUserBadgeWrapOuter()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
move-object v4, v1
|
|
|
|
|
|
|
|
check-cast v4, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {v4}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
xor-int/2addr v4, v8
|
|
|
|
|
|
|
|
invoke-static {v3, v4, v5, v6, v7}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getUserBadgeWrapOuter()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-ne v4, v8, :cond_3
|
|
|
|
|
|
|
|
move-object v4, v0
|
|
|
|
|
|
|
|
check-cast v4, Lcom/discord/app/AppFragment;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;->getBadgeClickListener(Lcom/discord/app/AppFragment;)Landroid/view/View$OnClickListener;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
move-object v2, v7
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual {v3, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getUserBadgesWrap()Landroid/view/ViewGroup;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
sub-int/2addr v3, v4
|
|
|
|
|
|
|
|
invoke-static {v5, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
invoke-static {v5, v3}, Lkotlin/ranges/c;->Y(II)Lkotlin/ranges/IntRange;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Ljava/lang/Iterable;
|
|
|
|
|
|
|
|
invoke-interface {v3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
|
|
|
|
move-object v4, v3
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
check-cast v4, Lkotlin/a/ab;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
invoke-virtual {v4}, Lkotlin/a/ab;->nextInt()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getLayoutInflater()Landroid/view/LayoutInflater;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v9, 0x7f0d01d2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4, v9, v2, v8}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-virtual {v2}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
invoke-static {v5, v3}, Lkotlin/ranges/c;->Y(II)Lkotlin/ranges/IntRange;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Ljava/lang/Iterable;
|
|
|
|
|
|
|
|
invoke-interface {v3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_8
|
|
|
|
|
|
|
|
move-object v4, v3
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
check-cast v4, Lkotlin/a/ab;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
invoke-virtual {v4}, Lkotlin/a/ab;->nextInt()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
if-eqz v9, :cond_7
|
|
|
|
|
|
|
|
check-cast v9, Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
if-ltz v4, :cond_5
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
invoke-static {v1}, Lkotlin/a/m;->Y(Ljava/util/List;)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
if-gt v4, v10, :cond_5
|
|
|
|
|
|
|
|
invoke-interface {v1, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v10
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
new-instance v10, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
const/16 v16, 0x0
|
|
|
|
|
|
|
|
const/16 v17, 0x0
|
|
|
|
|
|
|
|
const/16 v18, 0x3f
|
|
|
|
|
|
|
|
const/16 v19, 0x0
|
|
|
|
|
|
|
|
move-object v11, v10
|
|
|
|
|
|
|
|
invoke-direct/range {v11 .. v19}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;-><init>(IILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
check-cast v10, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;
|
|
|
|
|
|
|
|
move-object v11, v9
|
|
|
|
|
|
|
|
check-cast v11, Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v12
|
|
|
|
|
|
|
|
if-le v12, v4, :cond_6
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
invoke-static {v11, v4, v5, v6, v7}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-virtual {v10}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;->getIcon()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-virtual {v9, v4}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
|
|
|
|
move-object v4, v0
|
|
|
|
|
|
|
|
check-cast v4, Lcom/discord/app/AppFragment;
|
|
|
|
|
|
|
|
invoke-virtual {v10, v4}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;->getBadgeClickListener(Lcom/discord/app/AppFragment;)Landroid/view/View$OnClickListener;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v9, v4}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
new-instance v1, Lkotlin/r;
|
|
|
|
|
|
|
|
const-string v2, "null cannot be cast to non-null type android.widget.ImageView"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;->getPresence()Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;->isApplicationStreaming()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getUserPresenceView()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getUserStatusView()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-static {v1, v2, v3, v4}, Lcom/discord/utilities/presence/PresenceUtils;->setPresence(Lcom/discord/models/domain/ModelPresence;ZLandroid/widget/ImageView;Landroid/widget/TextView;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getUserAvatar()Landroid/widget/ImageView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->userAvatar$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/user/WidgetUserProfileHeader;->$$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 getUserBadgeInfo(Lcom/discord/models/domain/ModelUserProfile;IZ)Ljava/util/List;
|
2019-08-14 23:59:34 +00:00
|
|
|
.locals 18
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/discord/models/domain/ModelUserProfile;",
|
|
|
|
"IZ)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object/from16 v1, p1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move/from16 v2, p2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
new-instance v3, Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/16 v4, 0x8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-direct {v3, v4}, Ljava/util/ArrayList;-><init>(I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const-string v5, "profile.user"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v4, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->isStaff()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-eqz v4, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
new-instance v4, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v7, 0x7f080337
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v6, v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
check-cast v6, Landroidx/fragment/app/Fragment;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const v8, 0x7f06002c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v6, v8}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroidx/fragment/app/Fragment;I)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v6, 0x7f121036
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v6}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
const/16 v13, 0x38
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v14, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v6, v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-direct/range {v6 .. v14}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;-><init>(IILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v4, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->isPartner()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-eqz v4, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
new-instance v4, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v7, 0x7f080331
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v6, v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
check-cast v6, Landroidx/fragment/app/Fragment;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const v8, 0x7f06008a
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v6, v8}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroidx/fragment/app/Fragment;I)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v6, 0x7f120cab
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v6}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v12, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/16 v13, 0x38
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v14, 0x0
|
|
|
|
|
|
|
|
move-object v6, v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-direct/range {v6 .. v14}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;-><init>(IILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v4, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->isHypeSquad()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-eqz v4, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
new-instance v4, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v7, 0x7f08032f
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v6, v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
check-cast v6, Landroidx/fragment/app/Fragment;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const v8, 0x7f060126
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v6, v8}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroidx/fragment/app/Fragment;I)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v6, 0x7f1208de
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v6}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v12, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/16 v13, 0x38
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v14, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v6, v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-direct/range {v6 .. v14}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;-><init>(IILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v4, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->isHypesquadHouse1()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v6, 0x7f1208ef
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v7, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v8, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-eqz v4, :cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-ne v2, v8, :cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v4, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v4, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
new-instance v15, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-eqz v4, :cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v4, 0x7f0802b1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v10, 0x7f0802b1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
2019-08-26 23:09:33 +00:00
|
|
|
const v4, 0x7f0802b0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v10, 0x7f0802b0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_1
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v4, v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
check-cast v4, Landroidx/fragment/app/Fragment;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const v9, 0x7f060082
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v4, v9}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroidx/fragment/app/Fragment;I)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v11
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v4, 0x7f1208e6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v4}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
new-array v9, v8, [Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v4}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
aput-object v4, v9, v7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v6, v9}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v13
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v4, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/16 v16, 0x30
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/16 v17, 0x0
|
|
|
|
|
|
|
|
move-object v9, v15
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v6, v15
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v15, v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-direct/range {v9 .. v17}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;-><init>(IILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v3, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_5
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v4, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->isHypesquadHouse2()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v6, 0x2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-eqz v4, :cond_8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-ne v2, v6, :cond_6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v4, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_6
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v4, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_2
|
|
|
|
new-instance v15, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-eqz v4, :cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v4, 0x7f0802b3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v10, 0x7f0802b3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_7
|
2019-08-26 23:09:33 +00:00
|
|
|
const v4, 0x7f0802b2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v10, 0x7f0802b2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_3
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v4, v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
check-cast v4, Landroidx/fragment/app/Fragment;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const v9, 0x7f060083
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v4, v9}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroidx/fragment/app/Fragment;I)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v11
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v4, 0x7f1208e7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v4}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
new-array v9, v8, [Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v4}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
aput-object v4, v9, v7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v4, 0x7f1208ef
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v4, v9}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v13
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v4, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/16 v16, 0x30
|
|
|
|
|
|
|
|
const/16 v17, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v9, v15
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v6, v15
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v15, v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-direct/range {v9 .. v17}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;-><init>(IILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v3, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_8
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v4, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->isHypesquadHouse3()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v6, 0x3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-eqz v4, :cond_b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-ne v2, v6, :cond_9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v2, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_9
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v2, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_4
|
2019-08-14 23:59:34 +00:00
|
|
|
new-instance v4, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-eqz v2, :cond_a
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v2, 0x7f0802b5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v10, 0x7f0802b5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_a
|
2019-08-26 23:09:33 +00:00
|
|
|
const v2, 0x7f0802b4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v10, 0x7f0802b4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_5
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v2, v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
check-cast v2, Landroidx/fragment/app/Fragment;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const v9, 0x7f060084
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v2, v9}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroidx/fragment/app/Fragment;I)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v11
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v2, 0x7f1208e8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
new-array v9, v8, [Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
aput-object v2, v9, v7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v2, 0x7f1208ef
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v2, v9}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v13
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v15, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/16 v16, 0x30
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/16 v17, 0x0
|
|
|
|
|
|
|
|
move-object v9, v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-direct/range {v9 .. v17}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;-><init>(IILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_b
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v2, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelUser;->isBugHunter()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-eqz v2, :cond_c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
new-instance v2, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v10, 0x7f08032e
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v4, v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
check-cast v4, Landroidx/fragment/app/Fragment;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const v9, 0x7f060105
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v4, v9}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroidx/fragment/app/Fragment;I)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v11
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-22 23:43:07 +00:00
|
|
|
const v4, 0x7f120340
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v4}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v15, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/16 v16, 0x38
|
|
|
|
|
|
|
|
const/16 v17, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v9, v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-direct/range {v9 .. v17}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;-><init>(IILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_c
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v2, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelUser;->isPremiumEarlySupporter()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v4, 0x7f040298
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-eqz v2, :cond_d
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
new-instance v2, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v10, 0x7f080332
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v5, v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
check-cast v5, Landroidx/fragment/app/Fragment;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v5, v4}, Lcom/discord/utilities/color/ColorCompat;->getThemedColor(Landroidx/fragment/app/Fragment;I)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v11
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-22 23:43:07 +00:00
|
|
|
const v5, 0x7f120536
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v5}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v13, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
xor-int/lit8 v14, p3, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/16 v16, 0x8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/16 v17, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const-string v15, "PREMIUM_EARLY_SUPPORTER"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v9, v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-direct/range {v9 .. v17}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;-><init>(IILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_d
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->isPremium()Z
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v5, 0x7f120e0c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-eqz v2, :cond_e
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
new-instance v2, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v10, 0x7f080330
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v9, v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
check-cast v9, Landroidx/fragment/app/Fragment;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v9, v4}, Lcom/discord/utilities/color/ColorCompat;->getThemedColor(Landroidx/fragment/app/Fragment;I)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v11
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v5}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v9, 0x7f120d34
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
new-array v13, v8, [Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->requireContext()Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v14
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-16 21:39:58 +00:00
|
|
|
invoke-virtual {v1, v14}, Lcom/discord/models/domain/ModelUserProfile;->getPremiumSince(Landroid/content/Context;)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v14
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
aput-object v14, v13, v7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v9, v13}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v13
|
|
|
|
|
|
|
|
xor-int/lit8 v14, p3, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const-string v15, "PREMIUM"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v9, v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-direct/range {v9 .. v15}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;-><init>(IILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_e
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->isPremiumGuildSubscriber()Z
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-eqz v2, :cond_12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getPremiumGuildMonthsSubscribed()Ljava/lang/Integer;
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v9, v8}, Lkotlin/jvm/internal/k;->compare(II)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-gez v9, :cond_f
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v2, 0x7f080333
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v10, 0x7f080333
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_f
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/4 v10, 0x2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v9, v10}, Lkotlin/jvm/internal/k;->compare(II)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-gez v9, :cond_10
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v2, 0x7f080334
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v10, 0x7f080334
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_10
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v2, v6}, Lkotlin/jvm/internal/k;->compare(II)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
if-gez v2, :cond_11
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v2, 0x7f080335
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v10, 0x7f080335
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_11
|
2019-08-26 23:09:33 +00:00
|
|
|
const v2, 0x7f080336
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v10, 0x7f080336
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_6
|
2019-08-14 23:59:34 +00:00
|
|
|
new-instance v2, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-object v6, v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
check-cast v6, Landroidx/fragment/app/Fragment;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v6, v4}, Lcom/discord/utilities/color/ColorCompat;->getThemedColor(Landroidx/fragment/app/Fragment;I)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result v11
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v0, v5}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v4, 0x7f120dcd
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
new-array v5, v8, [Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->requireContext()Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-16 21:39:58 +00:00
|
|
|
invoke-virtual {v1, v6}, Lcom/discord/models/domain/ModelUserProfile;->getPremiumGuildSince(Landroid/content/Context;)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
aput-object v1, v5, v7
|
|
|
|
|
|
|
|
invoke-virtual {v0, v4, v5}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
move-result-object v13
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
xor-int/lit8 v14, p3, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const-string v15, "PREMIUM_GUILD"
|
|
|
|
|
|
|
|
move-object v9, v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-direct/range {v9 .. v15}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Badge;-><init>(IILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_12
|
2019-08-14 23:59:34 +00:00
|
|
|
check-cast v3, Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
return-object v3
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getUserBadgeText()Landroid/widget/TextView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->userBadgeText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/user/WidgetUserProfileHeader;->$$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/TextView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getUserBadgeWrapOuter()Landroid/view/View;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->userBadgeWrapOuter$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/user/WidgetUserProfileHeader;->$$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/view/View;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getUserBadgesWrap()Landroid/view/ViewGroup;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->userBadgesWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/user/WidgetUserProfileHeader;->$$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/view/ViewGroup;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getUserName()Landroid/widget/TextView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->userName$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/user/WidgetUserProfileHeader;->$$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, Landroid/widget/TextView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getUserPresenceView()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->userPresenceView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/user/WidgetUserProfileHeader;->$$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, Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getUserStatusView()Landroid/widget/TextView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/WidgetUserProfileHeader;->userStatusView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/user/WidgetUserProfileHeader;->$$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, Landroid/widget/TextView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final getContentViewResId()I
|
|
|
|
.locals 1
|
|
|
|
|
2019-08-26 23:09:33 +00:00
|
|
|
const v0, 0x7f0d01d1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onViewBoundOrOnResume()V
|
|
|
|
.locals 13
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader;->getMostRecentIntent()Landroid/content/Intent;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
|
|
|
|
const-string v3, "com.discord.intent.extra.EXTRA_USER_ID"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v3, v1, v2}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J
|
|
|
|
|
|
|
|
move-result-wide v3
|
|
|
|
|
|
|
|
cmp-long v0, v3, v1
|
|
|
|
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;->Companion:Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v3, v4}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Companion;->get(J)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
sget-object v0, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model;->Companion:Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/user/WidgetUserProfileHeader$Model$Companion;->getMe()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
move-object v1, p0
|
|
|
|
|
|
|
|
check-cast v1, Lcom/discord/app/AppComponent;
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-static {v0, v1, v3, v2, v3}, 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 v4
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/user/WidgetUserProfileHeader$onViewBoundOrOnResume$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/user/WidgetUserProfileHeader$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/user/WidgetUserProfileHeader;)V
|
|
|
|
|
|
|
|
move-object v10, v0
|
|
|
|
|
|
|
|
check-cast v10, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
const/16 v11, 0x1e
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v4 .. v12}, 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
|
|
|
|
.end method
|