apkfuckery/com.discord/smali/com/discord/widgets/friends/WidgetFriendsAdd$Companion.smali

187 lines
5.2 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion;
.super Ljava/lang/Object;
.source "WidgetFriendsAdd.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/discord/widgets/friends/WidgetFriendsAdd;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Companion"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion$UserNameDiscriminator;
}
.end annotation
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>()V
2019-07-24 11:27:29 +00:00
.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/friends/WidgetFriendsAdd$Companion;-><init>()V
return-void
.end method
.method public static final synthetic access$extractUsernameAndDiscriminator(Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion;Ljava/lang/CharSequence;)Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion$UserNameDiscriminator;
.locals 0
invoke-direct {p0, p1}, Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion;->extractUsernameAndDiscriminator(Ljava/lang/CharSequence;)Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion$UserNameDiscriminator;
move-result-object p0
return-object p0
.end method
.method private final extractUsernameAndDiscriminator(Ljava/lang/CharSequence;)Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion$UserNameDiscriminator;
.locals 3
invoke-static {}, Lcom/discord/widgets/friends/WidgetFriendsAdd;->access$getPATTERN_USERNAME$cp()Lkotlin/text/Regex;
move-result-object v0
2019-10-09 23:16:36 +00:00
invoke-virtual {v0, p1}, Lkotlin/text/Regex;->matchEntire(Ljava/lang/CharSequence;)Lkotlin/text/MatchResult;
2019-07-24 11:27:29 +00:00
move-result-object v0
if-eqz v0, :cond_0
2019-10-09 23:16:36 +00:00
invoke-interface {v0}, Lkotlin/text/MatchResult;->getGroupValues()Ljava/util/List;
2019-07-24 11:27:29 +00:00
move-result-object v1
if-eqz v1, :cond_0
invoke-interface {v1}, Ljava/util/Collection;->isEmpty()Z
move-result v1
const/4 v2, 0x1
xor-int/2addr v1, v2
if-ne v1, v2, :cond_0
new-instance p1, Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion$UserNameDiscriminator;
2019-10-09 23:16:36 +00:00
invoke-interface {v0}, Lkotlin/text/MatchResult;->getGroupValues()Ljava/util/List;
2019-07-24 11:27:29 +00:00
move-result-object v1
invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
2019-10-09 23:16:36 +00:00
invoke-interface {v0}, Lkotlin/text/MatchResult;->getGroupValues()Ljava/util/List;
2019-07-24 11:27:29 +00:00
move-result-object v0
const/4 v2, 0x2
invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
2019-12-13 02:35:12 +00:00
invoke-static {v0}, Ls/a0/o;->toIntOrNull(Ljava/lang/String;)Ljava/lang/Integer;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-direct {p1, v1, v0}, Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion$UserNameDiscriminator;-><init>(Ljava/lang/String;Ljava/lang/Integer;)V
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
new-instance v0, Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion$UserNameDiscriminator;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
const/4 v1, 0x0
invoke-direct {v0, p1, v1}, Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion$UserNameDiscriminator;-><init>(Ljava/lang/String;Ljava/lang/Integer;)V
2019-12-06 03:29:40 +00:00
move-object p1, v0
:goto_0
return-object p1
2019-07-24 11:27:29 +00:00
.end method
.method public static synthetic show$default(Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion;Landroid/content/Context;Ljava/lang/String;ILjava/lang/Object;)V
.locals 0
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_0
const/4 p2, 0x0
:cond_0
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion;->show(Landroid/content/Context;Ljava/lang/String;)V
return-void
.end method
# virtual methods
.method public final show(Landroid/content/Context;)V
.locals 2
const/4 v0, 0x0
const/4 v1, 0x2
invoke-static {p0, p1, v0, v1, v0}, Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion;->show$default(Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion;Landroid/content/Context;Ljava/lang/String;ILjava/lang/Object;)V
return-void
.end method
.method public final show(Landroid/content/Context;Ljava/lang/String;)V
2019-12-13 02:35:12 +00:00
.locals 3
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-13 02:35:12 +00:00
new-instance v1, Landroid/content/Intent;
2019-07-24 11:27:29 +00:00
2019-12-13 02:35:12 +00:00
invoke-direct {v1}, Landroid/content/Intent;-><init>()V
2019-07-24 11:27:29 +00:00
2019-12-13 02:35:12 +00:00
const-string v2, "android.intent.extra.TEXT"
2019-07-24 11:27:29 +00:00
2019-12-13 02:35:12 +00:00
invoke-virtual {v1, v2, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
2019-07-24 11:27:29 +00:00
const-class p2, Lcom/discord/widgets/friends/WidgetFriendsAdd;
2019-12-13 02:35:12 +00:00
const/16 v2, 0x8
invoke-static {p1, p2, v1, v0, v2}, Le/a/b/h;->a(Landroid/content/Context;Ljava/lang/Class;Landroid/content/Intent;Ljava/lang/Class;I)V
2019-07-24 11:27:29 +00:00
return-void
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "context"
2019-12-13 02:35:12 +00:00
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
throw v0
2019-07-24 11:27:29 +00:00
.end method