apkfuckery/com.discord/smali/f/a/i/c.smali

302 lines
7.2 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.class public final Lf/a/i/c;
2020-07-23 01:06:17 +00:00
.super Lf/l/a/a/a$a;
2020-07-08 16:44:49 +00:00
.source "SamsungConnectActivity.kt"
# instance fields
.field public final synthetic a:Lcom/discord/samsung/SamsungConnectActivity;
# direct methods
.method public constructor <init>(Lcom/discord/samsung/SamsungConnectActivity;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lf/a/i/c;->a:Lcom/discord/samsung/SamsungConnectActivity;
2020-07-23 01:06:17 +00:00
invoke-direct {p0}, Lf/l/a/a/a$a;-><init>()V
2020-07-08 16:44:49 +00:00
return-void
.end method
# virtual methods
2020-09-09 19:21:20 +00:00
.method public T(IZLandroid/os/Bundle;)V
2020-07-08 16:44:49 +00:00
.locals 0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Unexpected call to onReceiveAccessToken"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
2020-09-09 19:21:20 +00:00
.method public U(IZLandroid/os/Bundle;)V
2020-07-08 16:44:49 +00:00
.locals 0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Unexpected call to onReceiveAccessToken"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
2020-09-09 19:21:20 +00:00
.method public n(IZLandroid/os/Bundle;)V
2020-07-08 16:44:49 +00:00
.locals 0
new-instance p1, Ljava/lang/IllegalStateException;
2020-07-25 00:57:58 +00:00
const-string p2, "Unexpected call to onReceivePasswordConfirmation"
2020-07-08 16:44:49 +00:00
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
2020-07-25 02:57:47 +00:00
.method public p0(IZLandroid/os/Bundle;)V
2020-07-08 16:44:49 +00:00
.locals 0
new-instance p1, Ljava/lang/IllegalStateException;
2020-07-25 00:57:58 +00:00
const-string p2, "Unexpected call to onReceiveSCloudAccessToken"
2020-07-08 16:44:49 +00:00
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
2020-07-25 02:57:47 +00:00
.method public r0(IZLandroid/os/Bundle;)V
2020-07-08 16:44:49 +00:00
.locals 0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Unexpected call to onReceiveRLControlFMM"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
2020-07-25 02:57:47 +00:00
.method public s0(IZLandroid/os/Bundle;)V
2020-07-08 16:44:49 +00:00
.locals 0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Unexpected call to onReceiveDisclaimerAgreement"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
2020-09-09 19:21:20 +00:00
.method public u(IZLandroid/os/Bundle;)V
2020-07-08 16:44:49 +00:00
.locals 5
const/4 p1, 0x0
if-eqz p3, :cond_0
const-string v0, "authcode"
invoke-virtual {p3, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
goto :goto_0
:cond_0
move-object v0, p1
:goto_0
if-eqz p3, :cond_1
const-string v1, "auth_server_url"
invoke-virtual {p3, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
goto :goto_1
:cond_1
move-object v1, p1
:goto_1
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Samsung onReceiveAuthCode="
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Lcom/discord/app/AppLog;->i(Ljava/lang/String;)V
if-eqz p2, :cond_4
if-eqz v0, :cond_3
2020-09-08 08:16:32 +00:00
invoke-static {v0}, Lk0/t/k;->isBlank(Ljava/lang/CharSequence;)Z
2020-07-08 16:44:49 +00:00
move-result p2
if-eqz p2, :cond_2
goto :goto_2
:cond_2
const/4 p2, 0x0
goto :goto_3
:cond_3
:goto_2
const/4 p2, 0x1
:goto_3
if-eqz p2, :cond_9
:cond_4
if-eqz p3, :cond_5
const-string p2, "error_code"
invoke-virtual {p3, p2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
goto :goto_4
:cond_5
move-object p2, p1
:goto_4
if-eqz p3, :cond_6
const-string v2, "error_message"
invoke-virtual {p3, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p3
goto :goto_5
:cond_6
move-object p3, p1
:goto_5
const-string v2, "Samsung Account link failure "
2020-09-09 19:21:20 +00:00
invoke-static {v2}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-07-08 16:44:49 +00:00
move-result-object v2
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const/16 v4, 0x5b
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 p2, 0x3a
invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
if-eqz v0, :cond_8
const/4 p2, 0x4
2020-09-09 19:21:20 +00:00
const-string v4, "$this$takeLast"
invoke-static {v0, v4}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v4
if-le p2, v4, :cond_7
move p2, v4
:cond_7
sub-int/2addr v4, p2
invoke-virtual {v0, v4}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p2
const-string v4, "(this as java.lang.String).substring(startIndex)"
2020-09-09 19:21:20 +00:00
invoke-static {p2, v4}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
goto :goto_6
:cond_8
move-object p2, p1
:goto_6
invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p2, "]: "
invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
const-string p3, "StringBuilder()\n \u2026 .toString()"
2020-09-09 19:21:20 +00:00
invoke-static {p2, p3}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-07-31 02:11:25 +00:00
sget-object p3, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;
2020-07-08 16:44:49 +00:00
const/4 v2, 0x2
invoke-static {p3, p2, p1, v2, p1}, Lcom/discord/utilities/logging/Logger;->w$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V
:cond_9
iget-object p1, p0, Lf/a/i/c;->a:Lcom/discord/samsung/SamsungConnectActivity;
invoke-static {p1, v0, v1}, Lcom/discord/samsung/SamsungConnectActivity;->a(Lcom/discord/samsung/SamsungConnectActivity;Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
2020-09-09 19:21:20 +00:00
.method public x(IZLandroid/os/Bundle;)V
2020-07-08 16:44:49 +00:00
.locals 0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Unexpected call to onReceiveRubinRequest"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method