.class Lcom/ali/auth/third/ui/context/BridgeCallbackContext$2;
.super Ljava/lang/Object;
.source "BridgeCallbackContext.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/ali/auth/third/ui/context/BridgeCallbackContext;->onFailure(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/ali/auth/third/ui/context/BridgeCallbackContext;

.field final synthetic val$retString:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/ali/auth/third/ui/context/BridgeCallbackContext;Ljava/lang/String;)V
    .locals 0

    .line 49
    iput-object p1, p0, Lcom/ali/auth/third/ui/context/BridgeCallbackContext$2;->this$0:Lcom/ali/auth/third/ui/context/BridgeCallbackContext;

    iput-object p2, p0, Lcom/ali/auth/third/ui/context/BridgeCallbackContext$2;->val$retString:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .line 54
    iget-object v0, p0, Lcom/ali/auth/third/ui/context/BridgeCallbackContext$2;->val$retString:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz v0, :cond_0

    const-string v0, "javascript:window.HavanaBridge.onFailure(%s,\'\');"

    .line 55
    new-array v2, v2, [Ljava/lang/Object;

    iget-object v3, p0, Lcom/ali/auth/third/ui/context/BridgeCallbackContext$2;->this$0:Lcom/ali/auth/third/ui/context/BridgeCallbackContext;

    iget v3, v3, Lcom/ali/auth/third/ui/context/BridgeCallbackContext;->requestId:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v2, v1

    invoke-static {v0, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :cond_0
    const-string v0, "javascript:window.HavanaBridge.onFailure(%s,\'%s\');"

    const/4 v3, 0x2

    .line 57
    new-array v3, v3, [Ljava/lang/Object;

    iget-object v4, p0, Lcom/ali/auth/third/ui/context/BridgeCallbackContext$2;->this$0:Lcom/ali/auth/third/ui/context/BridgeCallbackContext;

    iget v4, v4, Lcom/ali/auth/third/ui/context/BridgeCallbackContext;->requestId:I

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v1

    iget-object v1, p0, Lcom/ali/auth/third/ui/context/BridgeCallbackContext$2;->val$retString:Ljava/lang/String;

    .line 58
    invoke-static {v1}, Lcom/ali/auth/third/ui/context/BridgeCallbackContext;->access$000(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    aput-object v1, v3, v2

    .line 57
    invoke-static {v0, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 60
    :goto_0
    iget-object v1, p0, Lcom/ali/auth/third/ui/context/BridgeCallbackContext$2;->this$0:Lcom/ali/auth/third/ui/context/BridgeCallbackContext;

    invoke-static {v1, v0}, Lcom/ali/auth/third/ui/context/BridgeCallbackContext;->access$100(Lcom/ali/auth/third/ui/context/BridgeCallbackContext;Ljava/lang/String;)V

    return-void
.end method
