297 lines
7.1 KiB
Smali
297 lines
7.1 KiB
Smali
.class public final Lf/a/i/c;
|
|
.super Lf/l/a/a/a$a;
|
|
.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;
|
|
|
|
invoke-direct {p0}, Lf/l/a/a/a$a;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public S(IZLandroid/os/Bundle;)V
|
|
.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
|
|
|
|
.method public T(IZLandroid/os/Bundle;)V
|
|
.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
|
|
|
|
.method public m(IZLandroid/os/Bundle;)V
|
|
.locals 0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p2, "Unexpected call to onReceivePasswordConfirmation"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public p0(IZLandroid/os/Bundle;)V
|
|
.locals 0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p2, "Unexpected call to onReceiveSCloudAccessToken"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public r0(IZLandroid/os/Bundle;)V
|
|
.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
|
|
|
|
.method public s0(IZLandroid/os/Bundle;)V
|
|
.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
|
|
|
|
.method public t(IZLandroid/os/Bundle;)V
|
|
.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
|
|
|
|
invoke-static {v0}, Lj0/t/k;->isBlank(Ljava/lang/CharSequence;)Z
|
|
|
|
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 "
|
|
|
|
invoke-static {v2}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
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
|
|
|
|
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)"
|
|
|
|
invoke-static {p2, v4}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
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()"
|
|
|
|
invoke-static {p2, p3}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object p3, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;
|
|
|
|
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
|
|
|
|
.method public w(IZLandroid/os/Bundle;)V
|
|
.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
|