c.smali
.class public Lcom/tencent/open/c;
.super Lcom/tencent/open/b;
.source "ProGuard"
# interfaces
.implements Lcom/tencent/open/c/a$a;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/tencent/open/c$1;,
Lcom/tencent/open/c$c;,
Lcom/tencent/open/c$d;,
Lcom/tencent/open/c$a;,
Lcom/tencent/open/c$b;
}
.end annotation
# static fields
.field static c:Landroid/widget/Toast;
# instance fields
.field private d:Ljava/lang/String;
.field private e:Lcom/tencent/tauth/IUiListener;
.field private f:Lcom/tencent/open/c$c;
.field private g:Landroid/os/Handler;
.field private h:Lcom/tencent/open/c/a;
.field private i:Lcom/tencent/open/c/b;
.field private j:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference",
"<",
"Landroid/content/Context;",
">;"
}
.end annotation
.end field
.field private k:I
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 297
const/4 v0, 0x0
sput-object v0, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/tencent/tauth/IUiListener;Lcom/tencent/connect/auth/QQToken;)V
.registers 12
.prologue
.line 74
const v0, 0x1030010
invoke-direct {p0, p1, v0}, Lcom/tencent/open/b;-><init>(Landroid/content/Context;I)V
.line 75
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lcom/tencent/open/c;->j:Ljava/lang/ref/WeakReference;
.line 76
iput-object p3, p0, Lcom/tencent/open/c;->d:Ljava/lang/String;
.line 77
new-instance v0, Lcom/tencent/open/c$c;
invoke-virtual {p5}, Lcom/tencent/connect/auth/QQToken;->getAppId()Ljava/lang/String;
move-result-object v4
move-object v1, p1
move-object v2, p2
move-object v3, p3
move-object v5, p4
invoke-direct/range {v0 .. v5}, Lcom/tencent/open/c$c;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/tencent/tauth/IUiListener;)V
iput-object v0, p0, Lcom/tencent/open/c;->f:Lcom/tencent/open/c$c;
.line 78
new-instance v0, Lcom/tencent/open/c$d;
iget-object v1, p0, Lcom/tencent/open/c;->f:Lcom/tencent/open/c$c;
invoke-virtual {p1}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;
move-result-object v2
invoke-direct {v0, p0, v1, v2}, Lcom/tencent/open/c$d;-><init>(Lcom/tencent/open/c;Lcom/tencent/open/c$c;Landroid/os/Looper;)V
iput-object v0, p0, Lcom/tencent/open/c;->g:Landroid/os/Handler;
.line 79
iput-object p4, p0, Lcom/tencent/open/c;->e:Lcom/tencent/tauth/IUiListener;
.line 80
const/high16 v0, 0x43390000 # 185.0f
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v1
invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object v1
iget v1, v1, Landroid/util/DisplayMetrics;->density:F
mul-float/2addr v0, v1
invoke-static {v0}, Ljava/lang/Math;->round(F)I
move-result v0
iput v0, p0, Lcom/tencent/open/c;->k:I
.line 81
const-string v0, "openSDK_LOG.PKDialog"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "density="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v2
invoke-virtual {v2}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object v2
iget v2, v2, Landroid/util/DisplayMetrics;->density:F
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "; webviewHeight="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget v2, p0, Lcom/tencent/open/c;->k:I
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Lcom/tencent/open/a/f;->e(Ljava/lang/String;Ljava/lang/String;)V
.line 82
return-void
.end method
.method static synthetic a(Lcom/tencent/open/c;)Ljava/lang/ref/WeakReference;
.registers 2
.prologue
.line 47
iget-object v0, p0, Lcom/tencent/open/c;->j:Ljava/lang/ref/WeakReference;
return-object v0
.end method
.method static synthetic a(Landroid/content/Context;Ljava/lang/String;)V
.registers 2
.prologue
.line 47
invoke-static {p0, p1}, Lcom/tencent/open/c;->c(Landroid/content/Context;Ljava/lang/String;)V
return-void
.end method
.method static synthetic b(Lcom/tencent/open/c;)Lcom/tencent/open/c$c;
.registers 2
.prologue
.line 47
iget-object v0, p0, Lcom/tencent/open/c;->f:Lcom/tencent/open/c$c;
return-object v0
.end method
.method private b()V
.registers 7
.prologue
const/4 v2, 0x0
const/4 v5, -0x1
.line 102
new-instance v1, Lcom/tencent/open/c/a;
iget-object v0, p0, Lcom/tencent/open/c;->j:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/Context;
invoke-direct {v1, v0}, Lcom/tencent/open/c/a;-><init>(Landroid/content/Context;)V
iput-object v1, p0, Lcom/tencent/open/c;->h:Lcom/tencent/open/c/a;
.line 103
iget-object v0, p0, Lcom/tencent/open/c;->h:Lcom/tencent/open/c/a;
const/high16 v1, 0x66000000
invoke-virtual {v0, v1}, Lcom/tencent/open/c/a;->setBackgroundColor(I)V
.line 104
iget-object v0, p0, Lcom/tencent/open/c;->h:Lcom/tencent/open/c/a;
new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;
invoke-direct {v1, v5, v5}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V
invoke-virtual {v0, v1}, Lcom/tencent/open/c/a;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 107
new-instance v1, Lcom/tencent/open/c/b;
iget-object v0, p0, Lcom/tencent/open/c;->j:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/Context;
invoke-direct {v1, v0}, Lcom/tencent/open/c/b;-><init>(Landroid/content/Context;)V
iput-object v1, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
.line 108
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
invoke-virtual {v0, v2}, Lcom/tencent/open/c/b;->setBackgroundColor(I)V
.line 109
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lcom/tencent/open/c/b;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 111
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0xb
if-lt v0, v1, :cond_6f
.line 113
:try_start_42
const-class v0, Landroid/view/View;
const-string v1, "setLayerType"
const/4 v2, 0x2
new-array v2, v2, [Ljava/lang/Class;
const/4 v3, 0x0
sget-object v4, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v4, v2, v3
const/4 v3, 0x1
const-class v4, Landroid/graphics/Paint;
aput-object v4, v2, v3
invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
.line 114
iget-object v1, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
const/4 v2, 0x2
new-array v2, v2, [Ljava/lang/Object;
const/4 v3, 0x0
const/4 v4, 0x1
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
aput-object v4, v2, v3
const/4 v3, 0x1
new-instance v4, Landroid/graphics/Paint;
invoke-direct {v4}, Landroid/graphics/Paint;-><init>()V
aput-object v4, v2, v3
invoke-virtual {v0, v1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_6f
.catch Ljava/lang/Exception; {:try_start_42 .. :try_end_6f} :catch_92
.line 120
:cond_6f
:goto_6f
new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;
iget v1, p0, Lcom/tencent/open/c;->k:I
invoke-direct {v0, v5, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V
.line 123
const/16 v1, 0xd
invoke-virtual {v0, v1, v5}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V
.line 124
iget-object v1, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
invoke-virtual {v1, v0}, Lcom/tencent/open/c/b;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 125
iget-object v0, p0, Lcom/tencent/open/c;->h:Lcom/tencent/open/c/a;
iget-object v1, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
invoke-virtual {v0, v1}, Lcom/tencent/open/c/a;->addView(Landroid/view/View;)V
.line 126
iget-object v0, p0, Lcom/tencent/open/c;->h:Lcom/tencent/open/c/a;
invoke-virtual {v0, p0}, Lcom/tencent/open/c/a;->a(Lcom/tencent/open/c/a$a;)V
.line 127
iget-object v0, p0, Lcom/tencent/open/c;->h:Lcom/tencent/open/c/a;
invoke-virtual {p0, v0}, Lcom/tencent/open/c;->setContentView(Landroid/view/View;)V
.line 129
return-void
.line 115
:catch_92
move-exception v0
.line 116
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_6f
.end method
.method static synthetic b(Landroid/content/Context;Ljava/lang/String;)V
.registers 2
.prologue
.line 47
invoke-static {p0, p1}, Lcom/tencent/open/c;->d(Landroid/content/Context;Ljava/lang/String;)V
return-void
.end method
.method static synthetic c(Lcom/tencent/open/c;)Lcom/tencent/open/c/b;
.registers 2
.prologue
.line 47
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
return-object v0
.end method
.method private c()V
.registers 7
.annotation build Landroid/annotation/SuppressLint;
value = {
"SetJavaScriptEnabled"
}
.end annotation
.prologue
const/4 v5, 0x0
const/4 v4, 0x1
const/4 v3, 0x0
.line 136
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
invoke-virtual {v0, v3}, Lcom/tencent/open/c/b;->setVerticalScrollBarEnabled(Z)V
.line 137
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
invoke-virtual {v0, v3}, Lcom/tencent/open/c/b;->setHorizontalScrollBarEnabled(Z)V
.line 138
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
new-instance v1, Lcom/tencent/open/c$a;
invoke-direct {v1, p0, v5}, Lcom/tencent/open/c$a;-><init>(Lcom/tencent/open/c;Lcom/tencent/open/c$1;)V
invoke-virtual {v0, v1}, Lcom/tencent/open/c/b;->setWebViewClient(Landroid/webkit/WebViewClient;)V
.line 139
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
iget-object v1, p0, Lcom/tencent/open/c;->b:Landroid/webkit/WebChromeClient;
invoke-virtual {v0, v1}, Lcom/tencent/open/c/b;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V
.line 140
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
invoke-virtual {v0}, Lcom/tencent/open/c/b;->clearFormData()V
.line 143
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
invoke-virtual {v0}, Lcom/tencent/open/c/b;->getSettings()Landroid/webkit/WebSettings;
move-result-object v1
.line 144
if-nez v1, :cond_2c
.line 172
:goto_2b
return-void
.line 147
:cond_2c
invoke-virtual {v1, v3}, Landroid/webkit/WebSettings;->setSavePassword(Z)V
.line 148
invoke-virtual {v1, v3}, Landroid/webkit/WebSettings;->setSaveFormData(Z)V
.line 150
const/4 v0, -0x1
invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setCacheMode(I)V
.line 153
invoke-virtual {v1, v3}, Landroid/webkit/WebSettings;->setNeedInitialFocus(Z)V
.line 154
invoke-virtual {v1, v4}, Landroid/webkit/WebSettings;->setBuiltInZoomControls(Z)V
.line 155
invoke-virtual {v1, v4}, Landroid/webkit/WebSettings;->setSupportZoom(Z)V
.line 157
sget-object v0, Landroid/webkit/WebSettings$RenderPriority;->HIGH:Landroid/webkit/WebSettings$RenderPriority;
invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setRenderPriority(Landroid/webkit/WebSettings$RenderPriority;)V
.line 158
invoke-virtual {v1, v4}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V
.line 160
iget-object v0, p0, Lcom/tencent/open/c;->j:Ljava/lang/ref/WeakReference;
if-eqz v0, :cond_6f
iget-object v0, p0, Lcom/tencent/open/c;->j:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_6f
.line 161
invoke-virtual {v1, v4}, Landroid/webkit/WebSettings;->setDatabaseEnabled(Z)V
.line 162
iget-object v0, p0, Lcom/tencent/open/c;->j:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
const-string v2, "databases"
invoke-virtual {v0, v2, v3}, Landroid/content/Context;->getDir(Ljava/lang/String;I)Ljava/io/File;
move-result-object v0
invoke-virtual {v0}, Ljava/io/File;->getPath()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setDatabasePath(Ljava/lang/String;)V
.line 165
:cond_6f
invoke-virtual {v1, v4}, Landroid/webkit/WebSettings;->setDomStorageEnabled(Z)V
.line 167
iget-object v0, p0, Lcom/tencent/open/c;->a:Lcom/tencent/open/a;
new-instance v1, Lcom/tencent/open/c$b;
invoke-direct {v1, p0, v5}, Lcom/tencent/open/c$b;-><init>(Lcom/tencent/open/c;Lcom/tencent/open/c$1;)V
const-string v2, "sdk_js_if"
invoke-virtual {v0, v1, v2}, Lcom/tencent/open/a;->a(Lcom/tencent/open/a$b;Ljava/lang/String;)V
.line 169
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
invoke-virtual {v0}, Lcom/tencent/open/c/b;->clearView()V
.line 170
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
iget-object v1, p0, Lcom/tencent/open/c;->d:Ljava/lang/String;
invoke-virtual {v0, v1}, Lcom/tencent/open/c/b;->loadUrl(Ljava/lang/String;)V
.line 171
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
invoke-virtual {v0}, Lcom/tencent/open/c/b;->getSettings()Landroid/webkit/WebSettings;
move-result-object v0
invoke-virtual {v0, v3}, Landroid/webkit/WebSettings;->setSavePassword(Z)V
goto :goto_2b
.end method
.method private static c(Landroid/content/Context;Ljava/lang/String;)V
.registers 6
.prologue
const/4 v3, 0x1
.line 302
:try_start_1
invoke-static {p1}, Lcom/tencent/open/utils/i;->d(Ljava/lang/String;)Lorg/json/JSONObject;
move-result-object v0
.line 303
const-string v1, "type"
invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
move-result v1
.line 305
const-string v2, "msg"
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 307
if-nez v1, :cond_40
.line 308
sget-object v1, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
if-nez v1, :cond_24
.line 309
const/4 v1, 0x0
invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v0
sput-object v0, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
.line 316
:goto_1e
sget-object v0, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
.line 332
:cond_23
:goto_23
return-void
.line 312
:cond_24
sget-object v1, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
sget-object v2, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
invoke-virtual {v2}, Landroid/widget/Toast;->getView()Landroid/view/View;
move-result-object v2
invoke-virtual {v1, v2}, Landroid/widget/Toast;->setView(Landroid/view/View;)V
.line 313
sget-object v1, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
invoke-virtual {v1, v0}, Landroid/widget/Toast;->setText(Ljava/lang/CharSequence;)V
.line 314
sget-object v0, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/widget/Toast;->setDuration(I)V
:try_end_3a
.catch Lorg/json/JSONException; {:try_start_1 .. :try_end_3a} :catch_3b
goto :goto_1e
.line 328
:catch_3b
move-exception v0
.line 330
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
goto :goto_23
.line 317
:cond_40
if-ne v1, v3, :cond_23
.line 318
:try_start_42
sget-object v1, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
if-nez v1, :cond_53
.line 319
const/4 v1, 0x1
invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v0
sput-object v0, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
.line 326
:goto_4d
sget-object v0, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
goto :goto_23
.line 322
:cond_53
sget-object v1, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
sget-object v2, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
invoke-virtual {v2}, Landroid/widget/Toast;->getView()Landroid/view/View;
move-result-object v2
invoke-virtual {v1, v2}, Landroid/widget/Toast;->setView(Landroid/view/View;)V
.line 323
sget-object v1, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
invoke-virtual {v1, v0}, Landroid/widget/Toast;->setText(Ljava/lang/CharSequence;)V
.line 324
sget-object v0, Lcom/tencent/open/c;->c:Landroid/widget/Toast;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Landroid/widget/Toast;->setDuration(I)V
:try_end_69
.catch Lorg/json/JSONException; {:try_start_42 .. :try_end_69} :catch_3b
goto :goto_4d
.end method
.method private static d(Landroid/content/Context;Ljava/lang/String;)V
.registers 5
.prologue
.line 336
if-eqz p0, :cond_4
if-nez p1, :cond_5
.line 370
:cond_4
:goto_4
return-void
.line 339
:cond_5
:try_start_5
invoke-static {p1}, Lcom/tencent/open/utils/i;->d(Ljava/lang/String;)Lorg/json/JSONObject;
move-result-object v0
.line 340
const-string v1, "action"
invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
move-result v1
.line 341
const-string v2, "msg"
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
:try_end_14
.catch Lorg/json/JSONException; {:try_start_5 .. :try_end_14} :catch_18
.line 342
const/4 v0, 0x1
if-ne v1, v0, :cond_4
goto :goto_4
.line 366
:catch_18
move-exception v0
.line 368
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
goto :goto_4
.end method
# virtual methods
.method public a()V
.registers 3
.prologue
.line 517
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
invoke-virtual {v0}, Lcom/tencent/open/c/b;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
iget v1, p0, Lcom/tencent/open/c;->k:I
iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
.line 518
const-string v0, "openSDK_LOG.PKDialog"
const-string v1, "onKeyboardHidden keyboard hide"
invoke-static {v0, v1}, Lcom/tencent/open/a/f;->e(Ljava/lang/String;Ljava/lang/String;)V
.line 519
return-void
.end method
.method public a(I)V
.registers 4
.prologue
.line 500
iget-object v0, p0, Lcom/tencent/open/c;->j:Ljava/lang/ref/WeakReference;
if-eqz v0, :cond_2d
iget-object v0, p0, Lcom/tencent/open/c;->j:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_2d
.line 501
iget v0, p0, Lcom/tencent/open/c;->k:I
if-ge p1, v0, :cond_35
const/4 v1, 0x2
iget-object v0, p0, Lcom/tencent/open/c;->j:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v0
iget v0, v0, Landroid/content/res/Configuration;->orientation:I
if-ne v1, v0, :cond_35
.line 504
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
invoke-virtual {v0}, Lcom/tencent/open/c/b;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
iput p1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
.line 509
:cond_2d
:goto_2d
const-string v0, "openSDK_LOG.PKDialog"
const-string v1, "onKeyboardShown keyboard show"
invoke-static {v0, v1}, Lcom/tencent/open/a/f;->e(Ljava/lang/String;Ljava/lang/String;)V
.line 510
return-void
.line 506
:cond_35
iget-object v0, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
invoke-virtual {v0}, Lcom/tencent/open/c/b;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
iget v1, p0, Lcom/tencent/open/c;->k:I
iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
goto :goto_2d
.end method
.method protected a(Ljava/lang/String;)V
.registers 4
.prologue
.line 523
const-string v0, "openSDK_LOG.PKDialog"
const-string v1, "--onConsoleMessage--"
invoke-static {v0, v1}, Lcom/tencent/open/a/f;->b(Ljava/lang/String;Ljava/lang/String;)V
.line 525
:try_start_7
iget-object v0, p0, Lcom/tencent/open/c;->a:Lcom/tencent/open/a;
iget-object v1, p0, Lcom/tencent/open/c;->i:Lcom/tencent/open/c/b;
invoke-virtual {v0, v1, p1}, Lcom/tencent/open/a;->a(Landroid/webkit/WebView;Ljava/lang/String;)Z
:try_end_e
.catch Ljava/lang/Exception; {:try_start_7 .. :try_end_e} :catch_f
.line 529
:goto_e
return-void
.line 526
:catch_f
move-exception v0
goto :goto_e
.end method
.method public onBackPressed()V
.registers 1
.prologue
.line 86
invoke-super {p0}, Lcom/tencent/open/b;->onBackPressed()V
.line 87
return-void
.end method
.method protected onCreate(Landroid/os/Bundle;)V
.registers 5
.prologue
const/4 v2, 0x1
.line 91
invoke-virtual {p0, v2}, Lcom/tencent/open/c;->requestWindowFeature(I)Z
.line 92
invoke-super {p0, p1}, Lcom/tencent/open/b;->onCreate(Landroid/os/Bundle;)V
.line 94
invoke-virtual {p0}, Lcom/tencent/open/c;->getWindow()Landroid/view/Window;
move-result-object v0
const/16 v1, 0x10
invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V
.line 95
invoke-virtual {p0}, Lcom/tencent/open/c;->getWindow()Landroid/view/Window;
move-result-object v0
invoke-virtual {v0, v2}, Landroid/view/Window;->setSoftInputMode(I)V
.line 96
invoke-direct {p0}, Lcom/tencent/open/c;->b()V
.line 97
invoke-direct {p0}, Lcom/tencent/open/c;->c()V
.line 98
return-void
.end method