2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/widgets/user/Badge$Companion;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "Badge.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/widgets/user/Badge;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "Companion"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/user/Badge$Companion;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final getBadgesForUser(Lcom/discord/models/domain/ModelUserProfile;IZLandroid/content/Context;)Ljava/util/List;
|
|
|
|
.locals 17
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/discord/models/domain/ModelUserProfile;",
|
|
|
|
"IZ",
|
|
|
|
"Landroid/content/Context;",
|
|
|
|
")",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lcom/discord/widgets/user/Badge;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
|
|
|
|
move/from16 v1, p2
|
|
|
|
|
|
|
|
move-object/from16 v2, p4
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1b
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1a
|
|
|
|
|
|
|
|
new-instance v3, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
const/16 v4, 0x8
|
|
|
|
|
|
|
|
invoke-direct {v3, v4}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-string v5, "profile.user"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v4, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->isStaff()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
|
|
|
|
new-instance v4, Lcom/discord/widgets/user/Badge;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v7, 0x7f0803cc
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-29 20:08:16 +00:00
|
|
|
const v6, 0x7f1214a1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
const/16 v12, 0x1c
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
move-object v6, v4
|
|
|
|
|
|
|
|
invoke-direct/range {v6 .. v13}, Lcom/discord/widgets/user/Badge;-><init>(ILjava/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
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v4, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->isPartner()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
|
|
|
|
new-instance v4, Lcom/discord/widgets/user/Badge;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v7, 0x7f0803c1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-29 20:08:16 +00:00
|
|
|
const v6, 0x7f1210b3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
const/16 v12, 0x1c
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
move-object v6, v4
|
|
|
|
|
|
|
|
invoke-direct/range {v6 .. v13}, Lcom/discord/widgets/user/Badge;-><init>(ILjava/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
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v4, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->isHypeSquad()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
|
|
|
|
new-instance v4, Lcom/discord/widgets/user/Badge;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v7, 0x7f0803bf
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const v6, 0x7f120bd3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
const/16 v12, 0x1c
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
move-object v6, v4
|
|
|
|
|
|
|
|
invoke-direct/range {v6 .. v13}, Lcom/discord/widgets/user/Badge;-><init>(ILjava/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
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v4, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->isHypesquadHouse1()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const v6, 0x7f120be4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x1
|
|
|
|
|
|
|
|
if-eqz v4, :cond_5
|
|
|
|
|
|
|
|
if-ne v1, v8, :cond_3
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
new-instance v15, Lcom/discord/widgets/user/Badge;
|
|
|
|
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v4, 0x7f08032c
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v10, 0x7f08032c
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
2020-07-23 01:06:17 +00:00
|
|
|
const v4, 0x7f08032b
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v10, 0x7f08032b
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_1
|
2020-07-25 00:57:58 +00:00
|
|
|
const v4, 0x7f120bdb
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
new-array v9, v8, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
aput-object v4, v9, v7
|
|
|
|
|
|
|
|
invoke-virtual {v2, v6, v9}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
|
|
|
const/16 v4, 0x18
|
|
|
|
|
|
|
|
const/16 v16, 0x0
|
|
|
|
|
|
|
|
move-object v9, v15
|
|
|
|
|
|
|
|
move-object v6, v15
|
|
|
|
|
|
|
|
move v15, v4
|
|
|
|
|
|
|
|
invoke-direct/range {v9 .. v16}, Lcom/discord/widgets/user/Badge;-><init>(ILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-virtual {v3, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v4, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->isHypesquadHouse2()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
const/4 v6, 0x2
|
|
|
|
|
|
|
|
if-eqz v4, :cond_8
|
|
|
|
|
|
|
|
if-ne v1, v6, :cond_6
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
new-instance v15, Lcom/discord/widgets/user/Badge;
|
|
|
|
|
|
|
|
if-eqz v4, :cond_7
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v4, 0x7f08032e
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v10, 0x7f08032e
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_7
|
2020-07-23 01:06:17 +00:00
|
|
|
const v4, 0x7f08032d
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v10, 0x7f08032d
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_3
|
2020-07-25 00:57:58 +00:00
|
|
|
const v4, 0x7f120bdc
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
new-array v9, v8, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
aput-object v4, v9, v7
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const v4, 0x7f120be4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v4, v9}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
|
|
|
const/16 v4, 0x18
|
|
|
|
|
|
|
|
const/16 v16, 0x0
|
|
|
|
|
|
|
|
move-object v9, v15
|
|
|
|
|
|
|
|
move-object v6, v15
|
|
|
|
|
|
|
|
move v15, v4
|
|
|
|
|
|
|
|
invoke-direct/range {v9 .. v16}, Lcom/discord/widgets/user/Badge;-><init>(ILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-virtual {v3, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v4, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->isHypesquadHouse3()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
const/4 v6, 0x3
|
|
|
|
|
|
|
|
if-eqz v4, :cond_b
|
|
|
|
|
|
|
|
if-ne v1, v6, :cond_9
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
new-instance v4, Lcom/discord/widgets/user/Badge;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_a
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v1, 0x7f080330
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v10, 0x7f080330
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_a
|
2020-07-23 01:06:17 +00:00
|
|
|
const v1, 0x7f08032f
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v10, 0x7f08032f
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_5
|
2020-07-25 00:57:58 +00:00
|
|
|
const v1, 0x7f120bdd
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
new-array v9, v8, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
aput-object v1, v9, v7
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const v1, 0x7f120be4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v1, v9}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
|
|
|
const/16 v15, 0x18
|
|
|
|
|
|
|
|
const/16 v16, 0x0
|
|
|
|
|
|
|
|
move-object v9, v4
|
|
|
|
|
|
|
|
invoke-direct/range {v9 .. v16}, Lcom/discord/widgets/user/Badge;-><init>(ILjava/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
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelUser;->isBugHunterLevel1()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const v4, 0x7f120366
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_c
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/user/Badge;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v10, 0x7f0803bd
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
|
|
|
const/16 v15, 0x1c
|
|
|
|
|
|
|
|
const/16 v16, 0x0
|
|
|
|
|
|
|
|
move-object v9, v1
|
|
|
|
|
|
|
|
invoke-direct/range {v9 .. v16}, Lcom/discord/widgets/user/Badge;-><init>(ILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelUser;->isBugHunterLevel2()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_d
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/user/Badge;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v10, 0x7f0803be
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
|
|
|
const/16 v15, 0x1c
|
|
|
|
|
|
|
|
const/16 v16, 0x0
|
|
|
|
|
|
|
|
move-object v9, v1
|
|
|
|
|
|
|
|
invoke-direct/range {v9 .. v16}, Lcom/discord/widgets/user/Badge;-><init>(ILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelUser;->isVerifiedDeveloper()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_e
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/user/Badge;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v10, 0x7f0803cd
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-29 20:08:16 +00:00
|
|
|
const v4, 0x7f12175e
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
|
|
|
const/16 v15, 0x1c
|
|
|
|
|
|
|
|
const/16 v16, 0x0
|
|
|
|
|
|
|
|
move-object v9, v1
|
|
|
|
|
|
|
|
invoke-direct/range {v9 .. v16}, Lcom/discord/widgets/user/Badge;-><init>(ILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelUser;->isPremiumEarlySupporter()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/user/Badge;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v10, 0x7f0803c2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const v4, 0x7f1205d7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
xor-int/lit8 v13, p3, 0x1
|
|
|
|
|
|
|
|
const/4 v15, 0x4
|
|
|
|
|
|
|
|
const/16 v16, 0x0
|
|
|
|
|
|
|
|
const-string v14, "PREMIUM_EARLY_SUPPORTER"
|
|
|
|
|
|
|
|
move-object v9, v1
|
|
|
|
|
|
|
|
invoke-direct/range {v9 .. v16}, Lcom/discord/widgets/user/Badge;-><init>(ILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->isPremium()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2020-07-29 20:08:16 +00:00
|
|
|
const v4, 0x7f121259
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_10
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/user/Badge;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v10, 0x7f0803c0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
2020-07-29 20:08:16 +00:00
|
|
|
const v5, 0x7f121134
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-array v9, v8, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/models/domain/ModelUserProfile;->getPremiumSince(Landroid/content/Context;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
aput-object v12, v9, v7
|
|
|
|
|
|
|
|
invoke-virtual {v2, v5, v9}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
xor-int/lit8 v13, p3, 0x1
|
|
|
|
|
|
|
|
const-string v14, "PREMIUM"
|
|
|
|
|
|
|
|
move-object v9, v1
|
|
|
|
|
|
|
|
invoke-direct/range {v9 .. v14}, Lcom/discord/widgets/user/Badge;-><init>(ILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_10
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->isPremiumGuildSubscriber()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_19
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelUserProfile;->getPremiumGuildMonthsSubscribed()Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
const/16 v9, 0x18
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v5, v9}, Lj0/n/c/h;->compare(II)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v9, 0x7f0803c3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-ltz v5, :cond_11
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v9, 0x7f0803cb
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v11, 0x7f0803cb
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto/16 :goto_6
|
|
|
|
|
|
|
|
:cond_11
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
const/16 v10, 0x12
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v5, v10}, Lj0/n/c/h;->compare(II)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-ltz v5, :cond_12
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v9, 0x7f0803ca
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v11, 0x7f0803ca
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto/16 :goto_6
|
|
|
|
|
|
|
|
:cond_12
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
const/16 v10, 0xf
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v5, v10}, Lj0/n/c/h;->compare(II)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-ltz v5, :cond_13
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v9, 0x7f0803c9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v11, 0x7f0803c9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_13
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
const/16 v10, 0xc
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v5, v10}, Lj0/n/c/h;->compare(II)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-ltz v5, :cond_14
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v9, 0x7f0803c8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v11, 0x7f0803c8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_14
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
const/16 v10, 0x9
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v5, v10}, Lj0/n/c/h;->compare(II)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-ltz v5, :cond_15
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v9, 0x7f0803c7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v11, 0x7f0803c7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_15
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
const/4 v10, 0x6
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v5, v10}, Lj0/n/c/h;->compare(II)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-ltz v5, :cond_16
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v9, 0x7f0803c6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v11, 0x7f0803c6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_16
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v5, v6}, Lj0/n/c/h;->compare(II)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-ltz v5, :cond_17
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v9, 0x7f0803c5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v11, 0x7f0803c5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_17
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
const/4 v6, 0x2
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v5, v6}, Lj0/n/c/h;->compare(II)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-ltz v5, :cond_18
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v9, 0x7f0803c4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v11, 0x7f0803c4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_18
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v8}, Lj0/n/c/h;->compare(II)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v11, 0x7f0803c3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_6
|
|
|
|
new-instance v1, Lcom/discord/widgets/user/Badge;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
2020-07-29 20:08:16 +00:00
|
|
|
const v4, 0x7f1211ec
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-array v5, v8, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/models/domain/ModelUserProfile;->getPremiumGuildSince(Landroid/content/Context;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
aput-object v0, v5, v7
|
|
|
|
|
|
|
|
invoke-virtual {v2, v4, v5}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v13
|
|
|
|
|
|
|
|
xor-int/lit8 v14, p3, 0x1
|
|
|
|
|
|
|
|
const-string v15, "PREMIUM_GUILD"
|
|
|
|
|
|
|
|
move-object v10, v1
|
|
|
|
|
|
|
|
invoke-direct/range {v10 .. v15}, Lcom/discord/widgets/user/Badge;-><init>(ILjava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_19
|
|
|
|
return-object v3
|
|
|
|
|
|
|
|
:cond_1a
|
|
|
|
const-string v0, "context"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v3
|
|
|
|
|
|
|
|
:cond_1b
|
|
|
|
const-string v0, "profile"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v3
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onBadgeClick(Landroidx/fragment/app/FragmentManager;Landroid/content/Context;)Lkotlin/jvm/functions/Function1;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroidx/fragment/app/FragmentManager;",
|
|
|
|
"Landroid/content/Context;",
|
|
|
|
")",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"Lcom/discord/widgets/user/Badge;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/user/Badge$Companion$onBadgeClick$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1, p2}, Lcom/discord/widgets/user/Badge$Companion$onBadgeClick$1;-><init>(Landroidx/fragment/app/FragmentManager;Landroid/content/Context;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "context"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "fragmentManager"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|