P.smali
.class Lcom/beetalk/sdk/P;
.super Ljava/lang/Object;
.source "VKAuthRequestHandler.java"
# interfaces
.implements Lbolts/k;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/beetalk/sdk/VKAuthRequestHandler;->onLoggedIn()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lbolts/k<",
"Lcom/beetalk/sdk/AuthClient$Result;",
"Ljava/lang/Void;",
">;"
}
.end annotation
# instance fields
.field final synthetic a:Landroid/app/Dialog;
.field final synthetic b:Lcom/beetalk/sdk/VKAuthRequestHandler;
# direct methods
.method constructor <init>(Lcom/beetalk/sdk/VKAuthRequestHandler;Landroid/app/Dialog;)V
.registers 3
.line 1
iput-object p1, p0, Lcom/beetalk/sdk/P;->b:Lcom/beetalk/sdk/VKAuthRequestHandler;
iput-object p2, p0, Lcom/beetalk/sdk/P;->a:Landroid/app/Dialog;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic then(Lbolts/y;)Ljava/lang/Object;
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 1
invoke-virtual {p0, p1}, Lcom/beetalk/sdk/P;->then(Lbolts/y;)Ljava/lang/Void;
move-result-object p1
return-object p1
.end method
.method public then(Lbolts/y;)Ljava/lang/Void;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lbolts/y<",
"Lcom/beetalk/sdk/AuthClient$Result;",
">;)",
"Ljava/lang/Void;"
}
.end annotation
.line 2
:try_start_0
iget-object v0, p0, Lcom/beetalk/sdk/P;->a:Landroid/app/Dialog;
invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V
:try_end_5
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_5} :catch_5
.line 3
:catch_5
invoke-virtual {p1}, Lbolts/y;->h()Z
move-result v0
if-eqz v0, :cond_2f
.line 4
iget-object v0, p0, Lcom/beetalk/sdk/P;->b:Lcom/beetalk/sdk/VKAuthRequestHandler;
iget-object v0, v0, Lcom/beetalk/sdk/AuthRequestHandler;->client:Lcom/beetalk/sdk/AuthClient;
.line 5
invoke-virtual {v0}, Lcom/beetalk/sdk/AuthClient;->getPendingRequest()Lcom/beetalk/sdk/AuthClient$AuthClientRequest;
move-result-object v1
.line 6
invoke-virtual {p1}, Lbolts/y;->c()Ljava/lang/Exception;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p1
sget-object v2, Lcom/garena/pay/android/GGErrorCode;->UNKNOWN_ERROR:Lcom/garena/pay/android/GGErrorCode;
.line 7
invoke-virtual {v2}, Lcom/garena/pay/android/GGErrorCode;->getCode()Ljava/lang/Integer;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v2
const-string v3, "error"
.line 8
invoke-static {v1, v3, p1, v2}, Lcom/beetalk/sdk/AuthClient$Result;->createErrorResult(Lcom/beetalk/sdk/AuthClient$AuthClientRequest;Ljava/lang/String;Ljava/lang/String;I)Lcom/beetalk/sdk/AuthClient$Result;
move-result-object p1
.line 9
invoke-virtual {v0, p1}, Lcom/beetalk/sdk/AuthClient;->notifyListener(Lcom/beetalk/sdk/AuthClient$Result;)V
goto :goto_3c
.line 10
:cond_2f
iget-object v0, p0, Lcom/beetalk/sdk/P;->b:Lcom/beetalk/sdk/VKAuthRequestHandler;
iget-object v0, v0, Lcom/beetalk/sdk/AuthRequestHandler;->client:Lcom/beetalk/sdk/AuthClient;
invoke-virtual {p1}, Lbolts/y;->d()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/beetalk/sdk/AuthClient$Result;
invoke-virtual {v0, p1}, Lcom/beetalk/sdk/AuthClient;->notifyListener(Lcom/beetalk/sdk/AuthClient$Result;)V
:goto_3c
const/4 p1, 0x0
return-object p1
.end method