.class public Lcom/ali/auth/third/login/task/RefreshSidTask;
.super Lcom/ali/auth/third/core/task/TaskWithDialog;
.source "RefreshSidTask.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/ali/auth/third/core/task/TaskWithDialog<",
        "Ljava/lang/String;",
        "Ljava/lang/Void;",
        "Ljava/lang/Void;",
        ">;"
    }
.end annotation


# instance fields
.field private view:Landroid/webkit/WebView;


# direct methods
.method public constructor <init>(Landroid/webkit/WebView;)V
    .locals 1

    .line 18
    invoke-virtual {p1}, Landroid/webkit/WebView;->getContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    invoke-direct {p0, v0}, Lcom/ali/auth/third/core/task/TaskWithDialog;-><init>(Landroid/app/Activity;)V

    .line 19
    iput-object p1, p0, Lcom/ali/auth/third/login/task/RefreshSidTask;->view:Landroid/webkit/WebView;

    return-void
.end method


# virtual methods
.method protected bridge synthetic asyncExecute([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 0

    .line 14
    check-cast p1, [Ljava/lang/String;

    invoke-virtual {p0, p1}, Lcom/ali/auth/third/login/task/RefreshSidTask;->asyncExecute([Ljava/lang/String;)Ljava/lang/Void;

    move-result-object p1

    return-object p1
.end method

.method protected varargs asyncExecute([Ljava/lang/String;)Ljava/lang/Void;
    .locals 2

    .line 24
    sget-object p1, Lcom/ali/auth/third/core/context/KernelContext;->credentialService:Lcom/ali/auth/third/core/service/CredentialService;

    .line 25
    invoke-interface {p1}, Lcom/ali/auth/third/core/service/CredentialService;->isSessionValid()Z

    move-result p1

    const/4 v0, 0x0

    if-nez p1, :cond_0

    .line 26
    iget-object p1, p0, Lcom/ali/auth/third/login/task/RefreshSidTask;->activity:Landroid/app/Activity;

    invoke-static {p1}, Lcom/ali/auth/third/ui/context/CallbackContext;->setActivity(Landroid/app/Activity;)V

    .line 27
    sget-object p1, Lcom/ali/auth/third/login/LoginComponent;->INSTANCE:Lcom/ali/auth/third/login/LoginComponent;

    iget-object v1, p0, Lcom/ali/auth/third/login/task/RefreshSidTask;->activity:Landroid/app/Activity;

    invoke-virtual {p1, v1}, Lcom/ali/auth/third/login/LoginComponent;->showLogin(Landroid/app/Activity;)V

    return-object v0

    :cond_0
    return-object v0
.end method

.method protected doWhenException(Ljava/lang/Throwable;)V
    .locals 0

    .line 36
    invoke-static {}, Lcom/ali/auth/third/core/util/CommonUtils;->toastSystemException()V

    return-void
.end method
