1286 lines
35 KiB
Smali
1286 lines
35 KiB
Smali
.class public Lcom/tencent/connect/auth/a;
|
|
.super Landroid/app/Dialog;
|
|
.source "ProGuard"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/tencent/connect/auth/a$d;,
|
|
Lcom/tencent/connect/auth/a$a;,
|
|
Lcom/tencent/connect/auth/a$b;,
|
|
Lcom/tencent/connect/auth/a$c;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Ljava/lang/String;
|
|
|
|
.field private b:Lcom/tencent/connect/auth/a$b;
|
|
|
|
.field private c:Lcom/tencent/tauth/IUiListener;
|
|
|
|
.field private d:Landroid/os/Handler;
|
|
|
|
.field private e:Landroid/widget/FrameLayout;
|
|
|
|
.field private f:Landroid/widget/LinearLayout;
|
|
|
|
.field private g:Landroid/widget/FrameLayout;
|
|
|
|
.field private h:Landroid/widget/ProgressBar;
|
|
|
|
.field private i:Ljava/lang/String;
|
|
|
|
.field private j:Lcom/tencent/open/c/c;
|
|
|
|
.field private k:Landroid/content/Context;
|
|
|
|
.field private l:Lcom/tencent/open/web/security/b;
|
|
|
|
.field private m:Z
|
|
|
|
.field private n:I
|
|
|
|
.field private o:Ljava/lang/String;
|
|
|
|
.field private p:Ljava/lang/String;
|
|
|
|
.field private q:J
|
|
|
|
.field private r:J
|
|
|
|
.field private s:Ljava/util/HashMap;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/HashMap<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Runnable;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/tencent/tauth/IUiListener;Lcom/tencent/connect/auth/QQToken;)V
|
|
.locals 8
|
|
|
|
const v0, 0x1030010
|
|
|
|
.line 109
|
|
invoke-direct {p0, p1, v0}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 96
|
|
iput-boolean v0, p0, Lcom/tencent/connect/auth/a;->m:Z
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 103
|
|
iput-wide v0, p0, Lcom/tencent/connect/auth/a;->q:J
|
|
|
|
const-wide/16 v0, 0x7530
|
|
|
|
.line 105
|
|
iput-wide v0, p0, Lcom/tencent/connect/auth/a;->r:J
|
|
|
|
.line 110
|
|
iput-object p1, p0, Lcom/tencent/connect/auth/a;->k:Landroid/content/Context;
|
|
|
|
.line 111
|
|
iput-object p3, p0, Lcom/tencent/connect/auth/a;->a:Ljava/lang/String;
|
|
|
|
.line 112
|
|
new-instance v0, Lcom/tencent/connect/auth/a$b;
|
|
|
|
invoke-virtual {p5}, Lcom/tencent/connect/auth/QQToken;->b()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
move-object v2, v0
|
|
|
|
move-object v3, p0
|
|
|
|
move-object v4, p2
|
|
|
|
move-object v5, p3
|
|
|
|
move-object v7, p4
|
|
|
|
invoke-direct/range {v2 .. v7}, Lcom/tencent/connect/auth/a$b;-><init>(Lcom/tencent/connect/auth/a;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/tencent/tauth/IUiListener;)V
|
|
|
|
iput-object v0, p0, Lcom/tencent/connect/auth/a;->b:Lcom/tencent/connect/auth/a$b;
|
|
|
|
.line 113
|
|
new-instance p3, Lcom/tencent/connect/auth/a$c;
|
|
|
|
iget-object p5, p0, Lcom/tencent/connect/auth/a;->b:Lcom/tencent/connect/auth/a$b;
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p3, p0, p5, p1}, Lcom/tencent/connect/auth/a$c;-><init>(Lcom/tencent/connect/auth/a;Lcom/tencent/connect/auth/a$b;Landroid/os/Looper;)V
|
|
|
|
iput-object p3, p0, Lcom/tencent/connect/auth/a;->d:Landroid/os/Handler;
|
|
|
|
.line 114
|
|
iput-object p4, p0, Lcom/tencent/connect/auth/a;->c:Lcom/tencent/tauth/IUiListener;
|
|
|
|
.line 115
|
|
iput-object p2, p0, Lcom/tencent/connect/auth/a;->i:Ljava/lang/String;
|
|
|
|
.line 116
|
|
new-instance p1, Lcom/tencent/open/web/security/b;
|
|
|
|
invoke-direct {p1}, Lcom/tencent/open/web/security/b;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/tencent/connect/auth/a;->l:Lcom/tencent/open/web/security/b;
|
|
|
|
.line 118
|
|
invoke-virtual {p0}, Lcom/tencent/connect/auth/a;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p1
|
|
|
|
const/16 p2, 0x20
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/Window;->setSoftInputMode(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/tencent/connect/auth/a;J)J
|
|
.locals 0
|
|
|
|
.line 61
|
|
iput-wide p1, p0, Lcom/tencent/connect/auth/a;->q:J
|
|
|
|
return-wide p1
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/tencent/connect/auth/a;)Landroid/content/Context;
|
|
.locals 0
|
|
|
|
.line 61
|
|
iget-object p0, p0, Lcom/tencent/connect/auth/a;->k:Landroid/content/Context;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private a()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
.line 450
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->a:Ljava/lang/String;
|
|
|
|
iget-object v1, p0, Lcom/tencent/connect/auth/a;->a:Ljava/lang/String;
|
|
|
|
const-string v2, "?"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 451
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "http://qzs.qq.com/open/mobile/login/qzsjump.html?"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "openSDK_LOG.AuthDialog"
|
|
|
|
const-string v2, "-->generateDownloadUrl, url: http://qzs.qq.com/open/mobile/login/qzsjump.html?"
|
|
|
|
.line 452
|
|
invoke-static {v1, v2}, Lcom/tencent/open/a/f;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/tencent/connect/auth/a;Ljava/lang/Object;)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 61
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/tencent/connect/auth/a;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/tencent/connect/auth/a;->a:Ljava/lang/String;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/tencent/connect/auth/a;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 61
|
|
invoke-direct {p0, p1}, Lcom/tencent/connect/auth/a;->a(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private a(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
.line 235
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 236
|
|
iget-object p1, p0, Lcom/tencent/connect/auth/a;->p:Ljava/lang/String;
|
|
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/tencent/connect/auth/a;->p:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result p1
|
|
|
|
const/4 v1, 0x4
|
|
|
|
if-lt p1, v1, :cond_0
|
|
|
|
.line 237
|
|
iget-object p1, p0, Lcom/tencent/connect/auth/a;->p:Ljava/lang/String;
|
|
|
|
iget-object v2, p0, Lcom/tencent/connect/auth/a;->p:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v2, v1
|
|
|
|
invoke-virtual {p1, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "_u_"
|
|
|
|
.line 242
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 245
|
|
:cond_0
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method static synthetic a(Landroid/content/Context;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 61
|
|
invoke-static {p0, p1}, Lcom/tencent/connect/auth/a;->b(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/tencent/connect/auth/a;Z)Z
|
|
.locals 0
|
|
|
|
.line 61
|
|
iput-boolean p1, p0, Lcom/tencent/connect/auth/a;->m:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/tencent/connect/auth/a;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 61
|
|
iput-object p1, p0, Lcom/tencent/connect/auth/a;->p:Ljava/lang/String;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private b()V
|
|
.locals 4
|
|
|
|
.line 457
|
|
invoke-direct {p0}, Lcom/tencent/connect/auth/a;->c()V
|
|
|
|
.line 458
|
|
new-instance v0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
invoke-direct {v0, v1, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V
|
|
|
|
.line 461
|
|
new-instance v1, Lcom/tencent/open/c/c;
|
|
|
|
iget-object v2, p0, Lcom/tencent/connect/auth/a;->k:Landroid/content/Context;
|
|
|
|
invoke-direct {v1, v2}, Lcom/tencent/open/c/c;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v1, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
.line 462
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0xb
|
|
|
|
if-lt v1, v2, :cond_0
|
|
|
|
.line 464
|
|
iget-object v1, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v1, v2, v3}, Lcom/tencent/open/c/c;->setLayerType(ILandroid/graphics/Paint;)V
|
|
|
|
.line 467
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
invoke-virtual {v1, v0}, Lcom/tencent/open/c/c;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 469
|
|
new-instance v1, Landroid/widget/FrameLayout;
|
|
|
|
iget-object v2, p0, Lcom/tencent/connect/auth/a;->k:Landroid/content/Context;
|
|
|
|
invoke-direct {v1, v2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v1, p0, Lcom/tencent/connect/auth/a;->e:Landroid/widget/FrameLayout;
|
|
|
|
const/16 v1, 0x11
|
|
|
|
.line 470
|
|
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
|
|
|
|
.line 471
|
|
iget-object v1, p0, Lcom/tencent/connect/auth/a;->e:Landroid/widget/FrameLayout;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 473
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->e:Landroid/widget/FrameLayout;
|
|
|
|
iget-object v1, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
|
|
|
|
.line 474
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->e:Landroid/widget/FrameLayout;
|
|
|
|
iget-object v1, p0, Lcom/tencent/connect/auth/a;->g:Landroid/widget/FrameLayout;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
|
|
|
|
.line 476
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->e:Landroid/widget/FrameLayout;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/tencent/connect/auth/a;->setContentView(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static b(Landroid/content/Context;Ljava/lang/String;)V
|
|
.locals 2
|
|
|
|
.line 627
|
|
:try_start_0
|
|
invoke-static {p1}, Lcom/tencent/open/utils/i;->d(Ljava/lang/String;)Lorg/json/JSONObject;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "type"
|
|
|
|
.line 628
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
const-string v1, "msg"
|
|
|
|
.line 630
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 631
|
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, p1, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
|
|
|
|
move-result-object p0
|
|
|
|
.line 632
|
|
invoke-virtual {p0}, Landroid/widget/Toast;->show()V
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
.line 634
|
|
invoke-virtual {p0}, Lorg/json/JSONException;->printStackTrace()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/tencent/connect/auth/a;)Z
|
|
.locals 0
|
|
|
|
.line 61
|
|
invoke-direct {p0}, Lcom/tencent/connect/auth/a;->e()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/tencent/connect/auth/a;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 61
|
|
iput-object p1, p0, Lcom/tencent/connect/auth/a;->o:Ljava/lang/String;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private c()V
|
|
.locals 5
|
|
|
|
.line 480
|
|
new-instance v0, Landroid/widget/ProgressBar;
|
|
|
|
iget-object v1, p0, Lcom/tencent/connect/auth/a;->k:Landroid/content/Context;
|
|
|
|
invoke-direct {v0, v1}, Landroid/widget/ProgressBar;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Lcom/tencent/connect/auth/a;->h:Landroid/widget/ProgressBar;
|
|
|
|
.line 481
|
|
new-instance v0, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
const/4 v1, -0x2
|
|
|
|
invoke-direct {v0, v1, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
|
|
|
|
.line 484
|
|
iget-object v2, p0, Lcom/tencent/connect/auth/a;->h:Landroid/widget/ProgressBar;
|
|
|
|
invoke-virtual {v2, v0}, Landroid/widget/ProgressBar;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 485
|
|
new-instance v0, Landroid/widget/LinearLayout;
|
|
|
|
iget-object v2, p0, Lcom/tencent/connect/auth/a;->k:Landroid/content/Context;
|
|
|
|
invoke-direct {v0, v2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Lcom/tencent/connect/auth/a;->f:Landroid/widget/LinearLayout;
|
|
|
|
.line 487
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->i:Ljava/lang/String;
|
|
|
|
const-string v2, "action_login"
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 488
|
|
new-instance v0, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
invoke-direct {v0, v1, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
|
|
|
|
const/16 v2, 0x10
|
|
|
|
.line 491
|
|
iput v2, v0, Landroid/widget/LinearLayout$LayoutParams;->gravity:I
|
|
|
|
const/4 v2, 0x5
|
|
|
|
.line 492
|
|
iput v2, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I
|
|
|
|
.line 493
|
|
new-instance v2, Landroid/widget/TextView;
|
|
|
|
iget-object v3, p0, Lcom/tencent/connect/auth/a;->k:Landroid/content/Context;
|
|
|
|
invoke-direct {v2, v3}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 494
|
|
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Ljava/util/Locale;->getLanguage()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "zh"
|
|
|
|
.line 495
|
|
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
const-string v3, "\u767b\u5f55\u4e2d..."
|
|
|
|
.line 496
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v3, "Logging in..."
|
|
|
|
.line 498
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
:goto_0
|
|
const/16 v3, 0xff
|
|
|
|
.line 500
|
|
invoke-static {v3, v3, v3}, Landroid/graphics/Color;->rgb(III)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
const/high16 v3, 0x41900000 # 18.0f
|
|
|
|
.line 501
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextSize(F)V
|
|
|
|
.line 502
|
|
invoke-virtual {v2, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v2, 0x0
|
|
|
|
.line 505
|
|
:goto_1
|
|
new-instance v0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
invoke-direct {v0, v1, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V
|
|
|
|
const/16 v3, 0x11
|
|
|
|
.line 508
|
|
iput v3, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
|
|
|
|
.line 509
|
|
iget-object v4, p0, Lcom/tencent/connect/auth/a;->f:Landroid/widget/LinearLayout;
|
|
|
|
invoke-virtual {v4, v0}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 510
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->f:Landroid/widget/LinearLayout;
|
|
|
|
iget-object v4, p0, Lcom/tencent/connect/auth/a;->h:Landroid/widget/ProgressBar;
|
|
|
|
invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 512
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->f:Landroid/widget/LinearLayout;
|
|
|
|
invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V
|
|
|
|
.line 514
|
|
:cond_2
|
|
new-instance v0, Landroid/widget/FrameLayout;
|
|
|
|
iget-object v2, p0, Lcom/tencent/connect/auth/a;->k:Landroid/content/Context;
|
|
|
|
invoke-direct {v0, v2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Lcom/tencent/connect/auth/a;->g:Landroid/widget/FrameLayout;
|
|
|
|
.line 515
|
|
new-instance v0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
const/4 v2, -0x1
|
|
|
|
invoke-direct {v0, v2, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V
|
|
|
|
const/16 v1, 0x50
|
|
|
|
.line 518
|
|
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
|
|
|
|
.line 519
|
|
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
|
|
|
|
const/16 v1, 0x28
|
|
|
|
.line 520
|
|
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
|
|
|
|
.line 521
|
|
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I
|
|
|
|
.line 522
|
|
iput v3, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
|
|
|
|
.line 523
|
|
iget-object v1, p0, Lcom/tencent/connect/auth/a;->g:Landroid/widget/FrameLayout;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 524
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->g:Landroid/widget/FrameLayout;
|
|
|
|
const/high16 v1, 0x1080000
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setBackgroundResource(I)V
|
|
|
|
.line 525
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->g:Landroid/widget/FrameLayout;
|
|
|
|
iget-object v1, p0, Lcom/tencent/connect/auth/a;->f:Landroid/widget/LinearLayout;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/tencent/connect/auth/a;)Z
|
|
.locals 0
|
|
|
|
.line 61
|
|
iget-boolean p0, p0, Lcom/tencent/connect/auth/a;->m:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/tencent/connect/auth/a;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 61
|
|
iget-object p0, p0, Lcom/tencent/connect/auth/a;->a:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private d()V
|
|
.locals 5
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
value = {
|
|
"SetJavaScriptEnabled"
|
|
}
|
|
.end annotation
|
|
|
|
.line 533
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Lcom/tencent/open/c/c;->setVerticalScrollBarEnabled(Z)V
|
|
|
|
.line 534
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/tencent/open/c/c;->setHorizontalScrollBarEnabled(Z)V
|
|
|
|
.line 535
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
new-instance v2, Lcom/tencent/connect/auth/a$a;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-direct {v2, p0, v3}, Lcom/tencent/connect/auth/a$a;-><init>(Lcom/tencent/connect/auth/a;Lcom/tencent/connect/auth/a$1;)V
|
|
|
|
invoke-virtual {v0, v2}, Lcom/tencent/open/c/c;->setWebViewClient(Landroid/webkit/WebViewClient;)V
|
|
|
|
.line 536
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
new-instance v2, Landroid/webkit/WebChromeClient;
|
|
|
|
invoke-direct {v2}, Landroid/webkit/WebChromeClient;-><init>()V
|
|
|
|
invoke-virtual {v0, v2}, Lcom/tencent/open/c/c;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V
|
|
|
|
.line 537
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
invoke-virtual {v0}, Lcom/tencent/open/c/c;->clearFormData()V
|
|
|
|
.line 540
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
invoke-virtual {v0}, Lcom/tencent/open/c/c;->clearSslPreferences()V
|
|
|
|
.line 541
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
new-instance v2, Lcom/tencent/connect/auth/a$1;
|
|
|
|
invoke-direct {v2, p0}, Lcom/tencent/connect/auth/a$1;-><init>(Lcom/tencent/connect/auth/a;)V
|
|
|
|
invoke-virtual {v0, v2}, Lcom/tencent/open/c/c;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V
|
|
|
|
.line 549
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
new-instance v2, Lcom/tencent/connect/auth/a$2;
|
|
|
|
invoke-direct {v2, p0}, Lcom/tencent/connect/auth/a$2;-><init>(Lcom/tencent/connect/auth/a;)V
|
|
|
|
invoke-virtual {v0, v2}, Lcom/tencent/open/c/c;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
|
|
|
|
.line 566
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
invoke-virtual {v0}, Lcom/tencent/open/c/c;->getSettings()Landroid/webkit/WebSettings;
|
|
|
|
move-result-object v0
|
|
|
|
.line 567
|
|
invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setSavePassword(Z)V
|
|
|
|
.line 568
|
|
invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setSaveFormData(Z)V
|
|
|
|
const/4 v2, -0x1
|
|
|
|
.line 570
|
|
invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setCacheMode(I)V
|
|
|
|
.line 573
|
|
invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setNeedInitialFocus(Z)V
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 574
|
|
invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setBuiltInZoomControls(Z)V
|
|
|
|
.line 575
|
|
invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setSupportZoom(Z)V
|
|
|
|
.line 577
|
|
sget-object v3, Landroid/webkit/WebSettings$RenderPriority;->HIGH:Landroid/webkit/WebSettings$RenderPriority;
|
|
|
|
invoke-virtual {v0, v3}, Landroid/webkit/WebSettings;->setRenderPriority(Landroid/webkit/WebSettings$RenderPriority;)V
|
|
|
|
.line 578
|
|
invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V
|
|
|
|
.line 580
|
|
invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setDatabaseEnabled(Z)V
|
|
|
|
.line 581
|
|
iget-object v3, p0, Lcom/tencent/connect/auth/a;->k:Landroid/content/Context;
|
|
|
|
const-string v4, "databases"
|
|
|
|
invoke-virtual {v3, v4, v1}, Landroid/content/Context;->getDir(Ljava/lang/String;I)Ljava/io/File;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Ljava/io/File;->getPath()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v3}, Landroid/webkit/WebSettings;->setDatabasePath(Ljava/lang/String;)V
|
|
|
|
.line 583
|
|
invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setDomStorageEnabled(Z)V
|
|
|
|
const-string v0, "openSDK_LOG.AuthDialog"
|
|
|
|
.line 585
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "-->mUrl : "
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v3, p0, Lcom/tencent/connect/auth/a;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v0, v2}, Lcom/tencent/open/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 586
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->a:Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Lcom/tencent/connect/auth/a;->o:Ljava/lang/String;
|
|
|
|
.line 587
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
iget-object v2, p0, Lcom/tencent/connect/auth/a;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2}, Lcom/tencent/open/c/c;->loadUrl(Ljava/lang/String;)V
|
|
|
|
.line 588
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
const/4 v2, 0x4
|
|
|
|
invoke-virtual {v0, v2}, Lcom/tencent/open/c/c;->setVisibility(I)V
|
|
|
|
.line 589
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
invoke-virtual {v0}, Lcom/tencent/open/c/c;->getSettings()Landroid/webkit/WebSettings;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setSavePassword(Z)V
|
|
|
|
.line 591
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->l:Lcom/tencent/open/web/security/b;
|
|
|
|
new-instance v2, Lcom/tencent/open/web/security/SecureJsInterface;
|
|
|
|
invoke-direct {v2}, Lcom/tencent/open/web/security/SecureJsInterface;-><init>()V
|
|
|
|
const-string v3, "SecureJsInterface"
|
|
|
|
invoke-virtual {v0, v2, v3}, Lcom/tencent/open/web/security/b;->a(Lcom/tencent/open/a$b;Ljava/lang/String;)V
|
|
|
|
.line 593
|
|
sput-boolean v1, Lcom/tencent/open/web/security/SecureJsInterface;->a:Z
|
|
|
|
.line 595
|
|
new-instance v0, Lcom/tencent/connect/auth/a$3;
|
|
|
|
invoke-direct {v0, p0}, Lcom/tencent/connect/auth/a$3;-><init>(Lcom/tencent/connect/auth/a;)V
|
|
|
|
invoke-super {p0, v0}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic e(Lcom/tencent/connect/auth/a;)Lcom/tencent/open/c/c;
|
|
.locals 0
|
|
|
|
.line 61
|
|
iget-object p0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private e()Z
|
|
.locals 5
|
|
|
|
.line 608
|
|
invoke-static {}, Lcom/tencent/connect/auth/b;->a()Lcom/tencent/connect/auth/b;
|
|
|
|
move-result-object v0
|
|
|
|
.line 609
|
|
invoke-virtual {v0}, Lcom/tencent/connect/auth/b;->c()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
.line 610
|
|
new-instance v2, Lcom/tencent/connect/auth/b$a;
|
|
|
|
invoke-direct {v2}, Lcom/tencent/connect/auth/b$a;-><init>()V
|
|
|
|
.line 611
|
|
iget-object v3, p0, Lcom/tencent/connect/auth/a;->c:Lcom/tencent/tauth/IUiListener;
|
|
|
|
iput-object v3, v2, Lcom/tencent/connect/auth/b$a;->a:Lcom/tencent/tauth/IUiListener;
|
|
|
|
.line 612
|
|
iput-object p0, v2, Lcom/tencent/connect/auth/b$a;->b:Lcom/tencent/connect/auth/a;
|
|
|
|
.line 613
|
|
iput-object v1, v2, Lcom/tencent/connect/auth/b$a;->c:Ljava/lang/String;
|
|
|
|
.line 614
|
|
invoke-virtual {v0, v2}, Lcom/tencent/connect/auth/b;->a(Lcom/tencent/connect/auth/b$a;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 615
|
|
iget-object v2, p0, Lcom/tencent/connect/auth/a;->a:Ljava/lang/String;
|
|
|
|
iget-object v3, p0, Lcom/tencent/connect/auth/a;->a:Ljava/lang/String;
|
|
|
|
const-string v4, "?"
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-virtual {v2, v4, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 616
|
|
iget-object v3, p0, Lcom/tencent/connect/auth/a;->a:Ljava/lang/String;
|
|
|
|
invoke-static {v3}, Lcom/tencent/open/utils/i;->b(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "token_key"
|
|
|
|
.line 617
|
|
invoke-virtual {v3, v4, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string v1, "serial"
|
|
|
|
.line 618
|
|
invoke-virtual {v3, v1, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string v0, "browser"
|
|
|
|
const-string v1, "1"
|
|
|
|
.line 619
|
|
invoke-virtual {v3, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 620
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "?"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {v3}, Lcom/tencent/open/utils/HttpUtils;->a(Landroid/os/Bundle;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/tencent/connect/auth/a;->a:Ljava/lang/String;
|
|
|
|
.line 621
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->k:Landroid/content/Context;
|
|
|
|
iget-object v1, p0, Lcom/tencent/connect/auth/a;->a:Ljava/lang/String;
|
|
|
|
invoke-static {v0, v1}, Lcom/tencent/open/utils/i;->a(Landroid/content/Context;Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method static synthetic f(Lcom/tencent/connect/auth/a;)Lcom/tencent/connect/auth/a$b;
|
|
.locals 0
|
|
|
|
.line 61
|
|
iget-object p0, p0, Lcom/tencent/connect/auth/a;->b:Lcom/tencent/connect/auth/a$b;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic g(Lcom/tencent/connect/auth/a;)Landroid/widget/FrameLayout;
|
|
.locals 0
|
|
|
|
.line 61
|
|
iget-object p0, p0, Lcom/tencent/connect/auth/a;->g:Landroid/widget/FrameLayout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic h(Lcom/tencent/connect/auth/a;)Lcom/tencent/open/web/security/b;
|
|
.locals 0
|
|
|
|
.line 61
|
|
iget-object p0, p0, Lcom/tencent/connect/auth/a;->l:Lcom/tencent/open/web/security/b;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic i(Lcom/tencent/connect/auth/a;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 61
|
|
iget-object p0, p0, Lcom/tencent/connect/auth/a;->o:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic j(Lcom/tencent/connect/auth/a;)J
|
|
.locals 2
|
|
|
|
.line 61
|
|
iget-wide v0, p0, Lcom/tencent/connect/auth/a;->q:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method static synthetic k(Lcom/tencent/connect/auth/a;)I
|
|
.locals 0
|
|
|
|
.line 61
|
|
iget p0, p0, Lcom/tencent/connect/auth/a;->n:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic l(Lcom/tencent/connect/auth/a;)J
|
|
.locals 2
|
|
|
|
.line 61
|
|
iget-wide v0, p0, Lcom/tencent/connect/auth/a;->r:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method static synthetic m(Lcom/tencent/connect/auth/a;)I
|
|
.locals 2
|
|
|
|
.line 61
|
|
iget v0, p0, Lcom/tencent/connect/auth/a;->n:I
|
|
|
|
add-int/lit8 v1, v0, 0x1
|
|
|
|
iput v1, p0, Lcom/tencent/connect/auth/a;->n:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method static synthetic n(Lcom/tencent/connect/auth/a;)Landroid/os/Handler;
|
|
.locals 0
|
|
|
|
.line 61
|
|
iget-object p0, p0, Lcom/tencent/connect/auth/a;->d:Landroid/os/Handler;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic o(Lcom/tencent/connect/auth/a;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 61
|
|
invoke-direct {p0}, Lcom/tencent/connect/auth/a;->a()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic p(Lcom/tencent/connect/auth/a;)Ljava/util/HashMap;
|
|
.locals 0
|
|
|
|
.line 61
|
|
iget-object p0, p0, Lcom/tencent/connect/auth/a;->s:Ljava/util/HashMap;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 2
|
|
|
|
.line 639
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "javascript:"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, "("
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, ");void("
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide p1
|
|
|
|
invoke-virtual {v0, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, ");"
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 640
|
|
iget-object p2, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
invoke-virtual {p2, p1}, Lcom/tencent/open/c/c;->loadUrl(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public dismiss()V
|
|
.locals 2
|
|
|
|
.line 646
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->s:Ljava/util/HashMap;
|
|
|
|
invoke-virtual {v0}, Ljava/util/HashMap;->clear()V
|
|
|
|
.line 647
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->d:Landroid/os/Handler;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V
|
|
|
|
.line 648
|
|
invoke-virtual {p0}, Lcom/tencent/connect/auth/a;->isShowing()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 649
|
|
invoke-super {p0}, Landroid/app/Dialog;->dismiss()V
|
|
|
|
.line 651
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 652
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
invoke-virtual {v0}, Lcom/tencent/open/c/c;->destroy()V
|
|
|
|
.line 653
|
|
iput-object v1, p0, Lcom/tencent/connect/auth/a;->j:Lcom/tencent/open/c/c;
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public onBackPressed()V
|
|
.locals 1
|
|
|
|
.line 133
|
|
iget-boolean v0, p0, Lcom/tencent/connect/auth/a;->m:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 134
|
|
iget-object v0, p0, Lcom/tencent/connect/auth/a;->b:Lcom/tencent/connect/auth/a$b;
|
|
|
|
invoke-virtual {v0}, Lcom/tencent/connect/auth/a$b;->onCancel()V
|
|
|
|
.line 136
|
|
:cond_0
|
|
invoke-super {p0}, Landroid/app/Dialog;->onBackPressed()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onCreate(Landroid/os/Bundle;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 123
|
|
invoke-virtual {p0, v0}, Lcom/tencent/connect/auth/a;->requestWindowFeature(I)Z
|
|
|
|
.line 124
|
|
invoke-super {p0, p1}, Landroid/app/Dialog;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
.line 125
|
|
invoke-direct {p0}, Lcom/tencent/connect/auth/a;->b()V
|
|
|
|
.line 126
|
|
invoke-direct {p0}, Lcom/tencent/connect/auth/a;->d()V
|
|
|
|
.line 128
|
|
new-instance p1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/tencent/connect/auth/a;->s:Ljava/util/HashMap;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onStop()V
|
|
.locals 0
|
|
|
|
.line 141
|
|
invoke-super {p0}, Landroid/app/Dialog;->onStop()V
|
|
|
|
return-void
|
|
.end method
|