.class public Lcom/moji/credit/CreditWebActivity;
.super Lcom/moji/base/MJActivity;
.source "CreditWebActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/credit/CreditWebActivity$MyH5Listener;
    }
.end annotation


# static fields
.field public static final ORIGNAL_URL:Ljava/lang/String; = "orignal_url"

.field public static YY_OVERRIDE_SCHEMA:Ljava/lang/String; = "yy://"

.field private static j:Ljava/util/Stack;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Stack<",
            "Lcom/moji/credit/CreditWebActivity;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field private a:Ljava/lang/String;

.field private b:Lcom/moji/webview/bridge/BridgeWebView;

.field private c:Lcom/moji/titlebar/MJTitleBar;

.field private i:Ljava/lang/String;

.field private k:Z

.field private l:Z

.field private m:I

.field private n:Lcom/moji/credit/CreditsH5Listener;

.field private o:Ljava/lang/String;

.field private p:Z

.field private q:Ljava/lang/String;

.field private r:Z

.field private s:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

.field private t:Lcom/tencent/smtt/sdk/ValueCallback;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/tencent/smtt/sdk/ValueCallback<",
            "[",
            "Landroid/net/Uri;",
            ">;"
        }
    .end annotation
.end field

.field private u:Lcom/tencent/smtt/sdk/ValueCallback;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/tencent/smtt/sdk/ValueCallback<",
            "Landroid/net/Uri;",
            ">;"
        }
    .end annotation
.end field

.field private v:Lcom/moji/webview/jsfunction/MojiJsSdk;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .line 54
    invoke-direct {p0}, Lcom/moji/base/MJActivity;-><init>()V

    const-string v0, "yy://return/"

    .line 57
    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->a:Ljava/lang/String;

    const/4 v0, 0x0

    .line 65
    iput-boolean v0, p0, Lcom/moji/credit/CreditWebActivity;->k:Z

    .line 66
    iput-boolean v0, p0, Lcom/moji/credit/CreditWebActivity;->l:Z

    const/16 v1, 0x6f

    .line 67
    iput v1, p0, Lcom/moji/credit/CreditWebActivity;->m:I

    .line 71
    iput-boolean v0, p0, Lcom/moji/credit/CreditWebActivity;->p:Z

    .line 73
    iput-boolean v0, p0, Lcom/moji/credit/CreditWebActivity;->r:Z

    return-void
.end method

.method static synthetic a(Lcom/moji/credit/CreditWebActivity;Lcom/tencent/smtt/sdk/ValueCallback;)Lcom/tencent/smtt/sdk/ValueCallback;
    .locals 0

    .line 54
    iput-object p1, p0, Lcom/moji/credit/CreditWebActivity;->u:Lcom/tencent/smtt/sdk/ValueCallback;

    return-object p1
.end method

.method static synthetic a(Lcom/moji/credit/CreditWebActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 54
    iput-object p1, p0, Lcom/moji/credit/CreditWebActivity;->q:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic a(Lcom/moji/credit/CreditWebActivity;Z)Ljava/lang/String;
    .locals 0

    .line 54
    invoke-direct {p0, p1}, Lcom/moji/credit/CreditWebActivity;->a(Z)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private a(Z)Ljava/lang/String;
    .locals 2

    .line 251
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    if-eqz p1, :cond_0

    :try_start_0
    const-string p1, "code"

    const/4 v1, 0x1

    .line 254
    invoke-virtual {v0, p1, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string p1, "msg"

    const-string v1, "success"

    .line 255
    invoke-virtual {v0, p1, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    goto :goto_0

    :cond_0
    const-string p1, "msg"

    const-string v1, "fail"

    .line 257
    invoke-virtual {v0, p1, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 261
    :catch_0
    :goto_0
    invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private a(ILandroid/content/Intent;)V
    .locals 3

    const/4 v0, 0x0

    const/4 v1, -0x1

    if-ne p1, v1, :cond_2

    if-eqz p2, :cond_2

    const-string p1, "result_extra_data"

    .line 395
    invoke-virtual {p2, p1}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 396
    invoke-virtual {p1}, Ljava/util/ArrayList;->isEmpty()Z

    move-result p2

    if-eqz p2, :cond_0

    goto :goto_0

    .line 400
    :cond_0
    iget-object p2, p0, Lcom/moji/credit/CreditWebActivity;->t:Lcom/tencent/smtt/sdk/ValueCallback;

    const/4 v1, 0x1

    new-array v1, v1, [Landroid/net/Uri;

    const/4 v2, 0x0

    invoke-virtual {p1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/camera/model/Image;

    iget-object p1, p1, Lcom/moji/camera/model/Image;->originalUri:Landroid/net/Uri;

    aput-object p1, v1, v2

    invoke-interface {p2, v1}, Lcom/tencent/smtt/sdk/ValueCallback;->onReceiveValue(Ljava/lang/Object;)V

    .line 401
    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->t:Lcom/tencent/smtt/sdk/ValueCallback;

    goto :goto_1

    .line 397
    :cond_1
    :goto_0
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->t:Lcom/tencent/smtt/sdk/ValueCallback;

    invoke-interface {p1, v0}, Lcom/tencent/smtt/sdk/ValueCallback;->onReceiveValue(Ljava/lang/Object;)V

    .line 398
    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->t:Lcom/tencent/smtt/sdk/ValueCallback;

    goto :goto_1

    .line 404
    :cond_2
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->t:Lcom/tencent/smtt/sdk/ValueCallback;

    invoke-interface {p1, v0}, Lcom/tencent/smtt/sdk/ValueCallback;->onReceiveValue(Ljava/lang/Object;)V

    .line 405
    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->t:Lcom/tencent/smtt/sdk/ValueCallback;

    :goto_1
    return-void
.end method

.method private a(Landroid/app/Activity;)V
    .locals 1

    if-eqz p1, :cond_0

    .line 488
    sget-object v0, Lcom/moji/credit/CreditWebActivity;->j:Ljava/util/Stack;

    invoke-virtual {v0, p1}, Ljava/util/Stack;->remove(Ljava/lang/Object;)Z

    .line 489
    invoke-virtual {p1}, Landroid/app/Activity;->finish()V

    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/moji/credit/CreditWebActivity;)V
    .locals 0

    .line 54
    invoke-direct {p0}, Lcom/moji/credit/CreditWebActivity;->m()V

    return-void
.end method

.method static synthetic a(Lcom/moji/credit/CreditWebActivity;Landroid/app/Activity;)V
    .locals 0

    .line 54
    invoke-direct {p0, p1}, Lcom/moji/credit/CreditWebActivity;->a(Landroid/app/Activity;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/credit/CreditWebActivity;Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)V
    .locals 0

    .line 54
    invoke-direct {p0, p1, p2}, Lcom/moji/credit/CreditWebActivity;->a(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)V

    return-void
.end method

.method private a(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)V
    .locals 0

    .line 271
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->c:Lcom/moji/titlebar/MJTitleBar;

    invoke-virtual {p1, p2}, Lcom/moji/titlebar/MJTitleBar;->setTitleText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method static synthetic b(Lcom/moji/credit/CreditWebActivity;)Lcom/moji/credit/CreditsH5Listener;
    .locals 0

    .line 54
    iget-object p0, p0, Lcom/moji/credit/CreditWebActivity;->n:Lcom/moji/credit/CreditsH5Listener;

    return-object p0
.end method

.method static synthetic b(Lcom/moji/credit/CreditWebActivity;Lcom/tencent/smtt/sdk/ValueCallback;)Lcom/tencent/smtt/sdk/ValueCallback;
    .locals 0

    .line 54
    iput-object p1, p0, Lcom/moji/credit/CreditWebActivity;->t:Lcom/tencent/smtt/sdk/ValueCallback;

    return-object p1
.end method

.method private b(ILandroid/content/Intent;)V
    .locals 2

    const/4 v0, 0x0

    const/4 v1, -0x1

    if-ne p1, v1, :cond_2

    if-eqz p2, :cond_2

    const-string p1, "result_extra_data"

    .line 411
    invoke-virtual {p2, p1}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 412
    invoke-virtual {p1}, Ljava/util/ArrayList;->isEmpty()Z

    move-result p2

    if-eqz p2, :cond_0

    goto :goto_0

    .line 416
    :cond_0
    iget-object p2, p0, Lcom/moji/credit/CreditWebActivity;->u:Lcom/tencent/smtt/sdk/ValueCallback;

    const/4 v1, 0x0

    invoke-virtual {p1, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/camera/model/Image;

    iget-object p1, p1, Lcom/moji/camera/model/Image;->originalUri:Landroid/net/Uri;

    invoke-interface {p2, p1}, Lcom/tencent/smtt/sdk/ValueCallback;->onReceiveValue(Ljava/lang/Object;)V

    .line 417
    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->u:Lcom/tencent/smtt/sdk/ValueCallback;

    goto :goto_1

    .line 413
    :cond_1
    :goto_0
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->u:Lcom/tencent/smtt/sdk/ValueCallback;

    invoke-interface {p1, v0}, Lcom/tencent/smtt/sdk/ValueCallback;->onReceiveValue(Ljava/lang/Object;)V

    .line 414
    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->u:Lcom/tencent/smtt/sdk/ValueCallback;

    goto :goto_1

    .line 420
    :cond_2
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->u:Lcom/tencent/smtt/sdk/ValueCallback;

    invoke-interface {p1, v0}, Lcom/tencent/smtt/sdk/ValueCallback;->onReceiveValue(Ljava/lang/Object;)V

    .line 421
    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->u:Lcom/tencent/smtt/sdk/ValueCallback;

    :goto_1
    return-void
.end method

.method static synthetic b(Lcom/moji/credit/CreditWebActivity;Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)Z
    .locals 0

    .line 54
    invoke-direct {p0, p1, p2}, Lcom/moji/credit/CreditWebActivity;->b(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)Z

    move-result p0

    return p0
.end method

.method static synthetic b(Lcom/moji/credit/CreditWebActivity;Z)Z
    .locals 0

    .line 54
    iput-boolean p1, p0, Lcom/moji/credit/CreditWebActivity;->r:Z

    return p1
.end method

.method private b(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)Z
    .locals 3

    .line 283
    invoke-static {p2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    .line 284
    iget-object v1, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    invoke-virtual {v1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    const/4 v2, 0x1

    if-eqz v1, :cond_0

    .line 285
    invoke-virtual {p1, p2}, Lcom/tencent/smtt/sdk/WebView;->loadUrl(Ljava/lang/String;)V

    return v2

    :cond_0
    const-string v1, "tel:"

    .line 289
    invoke-virtual {p2, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 290
    new-instance p1, Landroid/content/Intent;

    const-string p2, "android.intent.action.DIAL"

    invoke-direct {p1, p2, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 291
    invoke-virtual {p0, p1}, Lcom/moji/credit/CreditWebActivity;->startActivity(Landroid/content/Intent;)V

    return v2

    :cond_1
    const-string v1, "http:"

    .line 294
    invoke-virtual {p2, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_5

    const-string v1, "https:"

    invoke-virtual {p2, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    goto :goto_2

    .line 345
    :cond_2
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->a:Ljava/lang/String;

    invoke-virtual {p2, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_3

    :try_start_0
    const-string p1, "UTF-8"

    .line 348
    invoke-static {p2, p1}, Ljava/net/URLDecoder;->decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 349
    iget-object p2, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    invoke-virtual {p2, p1}, Lcom/moji/webview/bridge/BridgeWebView;->a(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    const-string p2, "CreditWebActivity"

    .line 351
    invoke-static {p2, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_1

    .line 353
    :cond_3
    sget-object p1, Lcom/moji/credit/CreditWebActivity;->YY_OVERRIDE_SCHEMA:Ljava/lang/String;

    invoke-virtual {p2, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_4

    .line 357
    :try_start_1
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    invoke-virtual {p1}, Lcom/moji/webview/bridge/BridgeWebView;->a()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_0

    :catch_1
    move-exception p1

    const-string p2, "CreditWebActivity"

    .line 359
    invoke-static {p2, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_0
    return v2

    :cond_4
    :goto_1
    return v2

    :cond_5
    :goto_2
    const-string v1, "dbnewopen"

    .line 295
    invoke-virtual {p2, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_6

    .line 296
    new-instance p1, Landroid/content/Intent;

    invoke-direct {p1}, Landroid/content/Intent;-><init>()V

    .line 297
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {p1, p0, v0}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    const-string v0, "dbnewopen"

    const-string v1, "none"

    .line 298
    invoke-virtual {p2, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p2

    const-string v0, "url"

    .line 299
    invoke-virtual {p1, v0, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 300
    iget p2, p0, Lcom/moji/credit/CreditWebActivity;->m:I

    invoke-virtual {p0, p1, p2}, Lcom/moji/credit/CreditWebActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto/16 :goto_3

    :cond_6
    const-string v1, "dbbackrefresh"

    .line 301
    invoke-virtual {p2, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_7

    const-string p1, "dbbackrefresh"

    const-string v0, "none"

    .line 302
    invoke-virtual {p2, p1, v0}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    .line 303
    new-instance p2, Landroid/content/Intent;

    invoke-direct {p2}, Landroid/content/Intent;-><init>()V

    const-string v0, "url"

    .line 304
    invoke-virtual {p2, v0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 305
    iget p1, p0, Lcom/moji/credit/CreditWebActivity;->m:I

    invoke-virtual {p0, p1, p2}, Lcom/moji/credit/CreditWebActivity;->setResult(ILandroid/content/Intent;)V

    .line 306
    invoke-direct {p0, p0}, Lcom/moji/credit/CreditWebActivity;->a(Landroid/app/Activity;)V

    goto/16 :goto_3

    :cond_7
    const-string v1, "dbbackrootrefresh"

    .line 307
    invoke-virtual {p2, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_9

    .line 309
    sget-object p1, Lcom/moji/credit/CreditWebActivity;->j:Ljava/util/Stack;

    invoke-virtual {p1}, Ljava/util/Stack;->size()I

    move-result p1

    if-ne p1, v2, :cond_8

    .line 310
    invoke-direct {p0, p0}, Lcom/moji/credit/CreditWebActivity;->a(Landroid/app/Activity;)V

    goto/16 :goto_3

    .line 312
    :cond_8
    sput-boolean v2, Lcom/moji/credit/MyCreditActivity;->mNeedRefreshCredit:Z

    .line 313
    invoke-direct {p0}, Lcom/moji/credit/CreditWebActivity;->n()V

    goto :goto_3

    :cond_9
    const-string v1, "dbbackroot"

    .line 315
    invoke-virtual {p2, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_b

    .line 316
    sget-object p1, Lcom/moji/credit/CreditWebActivity;->j:Ljava/util/Stack;

    invoke-virtual {p1}, Ljava/util/Stack;->size()I

    move-result p1

    if-ne p1, v2, :cond_a

    .line 317
    new-instance p1, Landroid/content/Intent;

    invoke-direct {p1}, Landroid/content/Intent;-><init>()V

    .line 318
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {p1, p0, v0}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    const-string v0, "dbbackroot"

    const-string v1, "none"

    .line 319
    invoke-virtual {p2, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p2

    const-string v0, "url"

    .line 320
    invoke-virtual {p1, v0, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 321
    iget p2, p0, Lcom/moji/credit/CreditWebActivity;->m:I

    invoke-virtual {p0, p1, p2}, Lcom/moji/credit/CreditWebActivity;->startActivityForResult(Landroid/content/Intent;I)V

    .line 322
    invoke-direct {p0, p0}, Lcom/moji/credit/CreditWebActivity;->a(Landroid/app/Activity;)V

    goto :goto_3

    .line 324
    :cond_a
    invoke-direct {p0}, Lcom/moji/credit/CreditWebActivity;->n()V

    goto :goto_3

    :cond_b
    const-string v1, "dbback"

    .line 326
    invoke-virtual {p2, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_c

    .line 328
    invoke-direct {p0, p0}, Lcom/moji/credit/CreditWebActivity;->a(Landroid/app/Activity;)V

    goto :goto_3

    :cond_c
    const-string v1, ".apk"

    .line 330
    invoke-virtual {p2, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_f

    const-string v1, ".apk?"

    invoke-virtual {p2, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_d

    goto :goto_4

    :cond_d
    const-string v0, "autologin"

    .line 338
    invoke-virtual {p2, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_e

    sget-object v0, Lcom/moji/credit/CreditWebActivity;->j:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->size()I

    move-result v0

    if-le v0, v2, :cond_e

    .line 340
    invoke-direct {p0}, Lcom/moji/credit/CreditWebActivity;->o()V

    .line 342
    :cond_e
    invoke-virtual {p1, p2}, Lcom/tencent/smtt/sdk/WebView;->loadUrl(Ljava/lang/String;)V

    :goto_3
    return v2

    .line 331
    :cond_f
    :goto_4
    new-instance p1, Landroid/content/Intent;

    const-string p2, "android.intent.action.VIEW"

    invoke-direct {p1, p2, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 332
    invoke-virtual {p0, p1}, Lcom/moji/credit/CreditWebActivity;->startActivity(Landroid/content/Intent;)V

    .line 333
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    const-string p2, "duiba"

    invoke-virtual {p1, p2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_10

    .line 334
    invoke-direct {p0, p0}, Lcom/moji/credit/CreditWebActivity;->a(Landroid/app/Activity;)V

    :cond_10
    return v2
.end method

.method static synthetic c(Lcom/moji/credit/CreditWebActivity;)Lcom/moji/webview/bridge/BridgeWebView;
    .locals 0

    .line 54
    iget-object p0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    return-object p0
.end method

.method private k()V
    .locals 3

    .line 130
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    new-instance v1, Lcom/moji/credit/CreditWebActivity$2;

    invoke-direct {v1, p0}, Lcom/moji/credit/CreditWebActivity$2;-><init>(Lcom/moji/credit/CreditWebActivity;)V

    invoke-virtual {v0, v1}, Lcom/moji/webview/bridge/BridgeWebView;->setWebChromeClient(Lcom/tencent/smtt/sdk/WebChromeClient;)V

    .line 150
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    new-instance v1, Lcom/moji/credit/CreditWebActivity$3;

    invoke-direct {v1, p0}, Lcom/moji/credit/CreditWebActivity$3;-><init>(Lcom/moji/credit/CreditWebActivity;)V

    invoke-virtual {v0, v1}, Lcom/moji/webview/bridge/BridgeWebView;->setWebViewClient(Lcom/tencent/smtt/sdk/WebViewClient;)V

    .line 158
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    new-instance v1, Lcom/moji/credit/CreditWebActivity$4;

    invoke-direct {v1, p0}, Lcom/moji/credit/CreditWebActivity$4;-><init>(Lcom/moji/credit/CreditWebActivity;)V

    const-string v2, "duiba_app"

    invoke-virtual {v0, v1, v2}, Lcom/moji/webview/bridge/BridgeWebView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 202
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->s:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    invoke-static {v0}, Lcom/moji/webview/datause/WebViewDataUsageHelper;->a(Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;)V

    .line 203
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    invoke-static {v0}, Lcom/moji/webview/datause/WebViewDataUsageHelper;->a(Ljava/lang/String;)Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->s:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    .line 204
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    iget-object v1, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/moji/webview/bridge/BridgeWebView;->loadUrl(Ljava/lang/String;)V

    return-void
.end method

.method private l()V
    .locals 2

    .line 265
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const/16 v1, 0x63

    .line 266
    invoke-virtual {p0, v1, v0}, Lcom/moji/credit/CreditWebActivity;->setResult(ILandroid/content/Intent;)V

    .line 267
    invoke-direct {p0, p0}, Lcom/moji/credit/CreditWebActivity;->a(Landroid/app/Activity;)V

    return-void
.end method

.method private m()V
    .locals 3

    .line 367
    new-instance v0, Lcom/moji/camera/model/GalleryOptions$Builder;

    invoke-direct {v0}, Lcom/moji/camera/model/GalleryOptions$Builder;-><init>()V

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/moji/camera/model/GalleryOptions$Builder;->a(Z)Lcom/moji/camera/model/GalleryOptions$Builder;

    move-result-object v0

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Lcom/moji/camera/model/GalleryOptions$Builder;->a(I)Lcom/moji/camera/model/GalleryOptions$Builder;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/moji/camera/model/GalleryOptions$Builder;->b(Z)Lcom/moji/camera/model/GalleryOptions$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/camera/model/GalleryOptions$Builder;->a()Lcom/moji/camera/model/GalleryOptions;

    move-result-object v0

    .line 368
    new-instance v2, Lcom/moji/camera/model/CropOptions$Builder;

    invoke-direct {v2}, Lcom/moji/camera/model/CropOptions$Builder;-><init>()V

    invoke-virtual {v2, v1}, Lcom/moji/camera/model/CropOptions$Builder;->a(I)Lcom/moji/camera/model/CropOptions$Builder;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/moji/camera/model/CropOptions$Builder;->b(I)Lcom/moji/camera/model/CropOptions$Builder;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/moji/camera/model/CropOptions$Builder;->c(I)Lcom/moji/camera/model/CropOptions$Builder;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/moji/camera/model/CropOptions$Builder;->d(I)Lcom/moji/camera/model/CropOptions$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/moji/camera/model/CropOptions$Builder;->a()Lcom/moji/camera/model/CropOptions;

    move-result-object v1

    .line 369
    sget v2, Lcom/moji/credit/R$string;->select_photo:I

    invoke-static {v2}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {p0, v2, v0, v1}, Lcom/moji/camera/PhotoActivity;->takePhoto(Landroid/app/Activity;Ljava/lang/String;Lcom/moji/camera/model/GalleryOptions;Lcom/moji/camera/model/CropOptions;)V

    return-void
.end method

.method private n()V
    .locals 3

    .line 477
    sget-object v0, Lcom/moji/credit/CreditWebActivity;->j:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->size()I

    move-result v0

    const/4 v1, 0x0

    :goto_0
    add-int/lit8 v2, v0, -0x1

    if-ge v1, v2, :cond_0

    .line 479
    sget-object v2, Lcom/moji/credit/CreditWebActivity;->j:Ljava/util/Stack;

    invoke-virtual {v2}, Ljava/util/Stack;->pop()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/moji/credit/CreditWebActivity;

    invoke-virtual {v2}, Lcom/moji/credit/CreditWebActivity;->finish()V

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method private o()V
    .locals 4

    .line 498
    sget-object v0, Lcom/moji/credit/CreditWebActivity;->j:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->size()I

    move-result v0

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v0, :cond_1

    .line 500
    sget-object v2, Lcom/moji/credit/CreditWebActivity;->j:Ljava/util/Stack;

    invoke-virtual {v2, v1}, Ljava/util/Stack;->get(I)Ljava/lang/Object;

    move-result-object v2

    if-eq v2, p0, :cond_0

    .line 501
    sget-object v2, Lcom/moji/credit/CreditWebActivity;->j:Ljava/util/Stack;

    invoke-virtual {v2, v1}, Ljava/util/Stack;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/moji/credit/CreditWebActivity;

    const/4 v3, 0x1

    iput-boolean v3, v2, Lcom/moji/credit/CreditWebActivity;->l:Z

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method


# virtual methods
.method protected a()V
    .locals 1

    .line 90
    sget v0, Lcom/moji/credit/R$layout;->activity_credit_web:I

    invoke-virtual {p0, v0}, Lcom/moji/credit/CreditWebActivity;->setContentView(I)V

    return-void
.end method

.method protected b()V
    .locals 2

    .line 94
    sget v0, Lcom/moji/credit/R$id;->credit_web_webview:I

    invoke-virtual {p0, v0}, Lcom/moji/credit/CreditWebActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/webview/bridge/BridgeWebView;

    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    .line 95
    sget v0, Lcom/moji/credit/R$id;->credit_mj_title_bar:I

    invoke-virtual {p0, v0}, Lcom/moji/credit/CreditWebActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/titlebar/MJTitleBar;

    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->c:Lcom/moji/titlebar/MJTitleBar;

    .line 96
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->c:Lcom/moji/titlebar/MJTitleBar;

    new-instance v1, Lcom/moji/credit/CreditWebActivity$1;

    invoke-direct {v1, p0}, Lcom/moji/credit/CreditWebActivity$1;-><init>(Lcom/moji/credit/CreditWebActivity;)V

    invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setOnClickBackListener(Lcom/moji/titlebar/MJTitleBar$OnClickBack;)V

    .line 102
    invoke-virtual {p0}, Lcom/moji/credit/CreditWebActivity;->j()V

    return-void
.end method

.method protected c()V
    .locals 0

    .line 108
    invoke-direct {p0}, Lcom/moji/credit/CreditWebActivity;->k()V

    return-void
.end method

.method protected d()V
    .locals 1

    .line 113
    sget-object v0, Lcom/moji/credit/CreditWebActivity;->j:Ljava/util/Stack;

    if-nez v0, :cond_0

    .line 114
    new-instance v0, Ljava/util/Stack;

    invoke-direct {v0}, Ljava/util/Stack;-><init>()V

    sput-object v0, Lcom/moji/credit/CreditWebActivity;->j:Ljava/util/Stack;

    .line 116
    :cond_0
    sget-object v0, Lcom/moji/credit/CreditWebActivity;->j:Ljava/util/Stack;

    invoke-virtual {v0, p0}, Ljava/util/Stack;->push(Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method

.method protected e()V
    .locals 2

    .line 120
    invoke-virtual {p0}, Lcom/moji/credit/CreditWebActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "url"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    .line 121
    invoke-virtual {p0}, Lcom/moji/credit/CreditWebActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "orignal_url"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->o:Ljava/lang/String;

    .line 122
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    if-nez v0, :cond_0

    .line 123
    invoke-virtual {p0}, Lcom/moji/credit/CreditWebActivity;->finish()V

    .line 125
    :cond_0
    new-instance v0, Lcom/moji/credit/CreditWebActivity$MyH5Listener;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/moji/credit/CreditWebActivity$MyH5Listener;-><init>(Lcom/moji/credit/CreditWebActivity;Lcom/moji/credit/CreditWebActivity$1;)V

    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->n:Lcom/moji/credit/CreditsH5Listener;

    return-void
.end method

.method public eventLoginSuccess(Lcom/moji/bus/event/BusEventCommon$LoginSuccessEvent;)V
    .locals 3
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    .line 536
    iget-boolean p1, p0, Lcom/moji/credit/CreditWebActivity;->r:Z

    if-eqz p1, :cond_0

    .line 537
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->q:Ljava/lang/String;

    goto :goto_0

    .line 539
    :cond_0
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    const-string v0, "not_login"

    invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_1

    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->o:Ljava/lang/String;

    if-eqz p1, :cond_1

    .line 540
    new-instance p1, Lcom/moji/credit/util/GoToCreditPage;

    invoke-direct {p1}, Lcom/moji/credit/util/GoToCreditPage;-><init>()V

    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->o:Ljava/lang/String;

    const/4 v1, 0x0

    new-instance v2, Lcom/moji/credit/CreditWebActivity$7;

    invoke-direct {v2, p0}, Lcom/moji/credit/CreditWebActivity$7;-><init>(Lcom/moji/credit/CreditWebActivity;)V

    invoke-virtual {p1, v0, p0, v1, v2}, Lcom/moji/credit/util/GoToCreditPage;->a(Ljava/lang/String;Landroid/content/Context;ZLcom/moji/credit/util/GetDuiBaUrlListener;)V

    return-void

    .line 548
    :cond_1
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    const-string v0, "dbclicked-url="

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result p1

    .line 549
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    const-string v1, "none"

    invoke-virtual {v0, v1}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v0

    if-ge p1, v0, :cond_2

    .line 551
    iget-object v1, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    const-string v2, "dbclicked-url="

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    add-int/2addr p1, v2

    invoke-virtual {v1, p1, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 553
    :cond_2
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    .line 557
    :goto_0
    new-instance v0, Lcom/moji/credit/util/GoToCreditPage;

    invoke-direct {v0}, Lcom/moji/credit/util/GoToCreditPage;-><init>()V

    new-instance v1, Lcom/moji/credit/CreditWebActivity$8;

    invoke-direct {v1, p0}, Lcom/moji/credit/CreditWebActivity$8;-><init>(Lcom/moji/credit/CreditWebActivity;)V

    invoke-virtual {v0, p0, p1, v1}, Lcom/moji/credit/util/GoToCreditPage;->a(Landroid/content/Context;Ljava/lang/String;Lcom/moji/credit/util/GetDuiBaUrlListener;)V

    return-void
.end method

.method protected h()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method protected j()V
    .locals 3

    .line 209
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    invoke-virtual {v0}, Lcom/moji/webview/bridge/BridgeWebView;->getSettings()Lcom/tencent/smtt/sdk/WebSettings;

    move-result-object v0

    const/4 v1, 0x1

    .line 212
    invoke-virtual {v0, v1}, Lcom/tencent/smtt/sdk/WebSettings;->setLoadsImagesAutomatically(Z)V

    .line 213
    invoke-virtual {v0, v1}, Lcom/tencent/smtt/sdk/WebSettings;->setSaveFormData(Z)V

    .line 214
    invoke-virtual {v0, v1}, Lcom/tencent/smtt/sdk/WebSettings;->setSavePassword(Z)V

    .line 215
    sget-object v2, Lcom/tencent/smtt/sdk/WebSettings$ZoomDensity;->MEDIUM:Lcom/tencent/smtt/sdk/WebSettings$ZoomDensity;

    invoke-virtual {v0, v2}, Lcom/tencent/smtt/sdk/WebSettings;->setDefaultZoom(Lcom/tencent/smtt/sdk/WebSettings$ZoomDensity;)V

    .line 216
    invoke-virtual {v0, v1}, Lcom/tencent/smtt/sdk/WebSettings;->setSupportZoom(Z)V

    .line 218
    invoke-static {}, Lcom/tencent/smtt/sdk/CookieManager;->getInstance()Lcom/tencent/smtt/sdk/CookieManager;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/tencent/smtt/sdk/CookieManager;->setAcceptCookie(Z)V

    .line 221
    invoke-virtual {v0, v1}, Lcom/tencent/smtt/sdk/WebSettings;->setSupportMultipleWindows(Z)V

    .line 222
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    invoke-virtual {v0, v1}, Lcom/moji/webview/bridge/BridgeWebView;->setLongClickable(Z)V

    .line 223
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    invoke-virtual {v0, v1}, Lcom/moji/webview/bridge/BridgeWebView;->setScrollbarFadingEnabled(Z)V

    .line 224
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Lcom/moji/webview/bridge/BridgeWebView;->setScrollBarStyle(I)V

    .line 225
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    invoke-virtual {v0, v1}, Lcom/moji/webview/bridge/BridgeWebView;->setDrawingCacheEnabled(Z)V

    .line 227
    new-instance v0, Lcom/moji/webview/jsfunction/MojiJsSdk;

    iget-object v1, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    invoke-direct {v0, p0, v1}, Lcom/moji/webview/jsfunction/MojiJsSdk;-><init>(Lcom/moji/base/MJActivity;Lcom/moji/webview/bridge/BridgeWebView;)V

    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->v:Lcom/moji/webview/jsfunction/MojiJsSdk;

    .line 228
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->v:Lcom/moji/webview/jsfunction/MojiJsSdk;

    new-instance v1, Lcom/moji/webview/JsInterface;

    invoke-direct {v1}, Lcom/moji/webview/JsInterface;-><init>()V

    invoke-virtual {v0, v1}, Lcom/moji/webview/jsfunction/MojiJsSdk;->a(Lcom/moji/webview/JsInterface;)V

    .line 229
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->v:Lcom/moji/webview/jsfunction/MojiJsSdk;

    new-instance v1, Lcom/moji/credit/CreditWebActivity$5;

    invoke-direct {v1, p0}, Lcom/moji/credit/CreditWebActivity$5;-><init>(Lcom/moji/credit/CreditWebActivity;)V

    invoke-virtual {v0, v1}, Lcom/moji/webview/jsfunction/MojiJsSdk;->a(Lcom/moji/webview/jsfunction/MojiJsSdk$OnCallNativeListener;)V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    .line 374
    invoke-super {p0, p1, p2, p3}, Lcom/moji/base/MJActivity;->onActivityResult(IILandroid/content/Intent;)V

    const/16 v0, 0x7b

    if-ne p1, v0, :cond_1

    .line 376
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->t:Lcom/tencent/smtt/sdk/ValueCallback;

    if-eqz p1, :cond_0

    .line 377
    invoke-direct {p0, p2, p3}, Lcom/moji/credit/CreditWebActivity;->a(ILandroid/content/Intent;)V

    goto :goto_0

    .line 378
    :cond_0
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->u:Lcom/tencent/smtt/sdk/ValueCallback;

    if-eqz p1, :cond_1

    .line 379
    invoke-direct {p0, p2, p3}, Lcom/moji/credit/CreditWebActivity;->b(ILandroid/content/Intent;)V

    :cond_1
    :goto_0
    const/16 p1, 0x64

    if-ne p2, p1, :cond_2

    const-string p1, "url"

    .line 383
    invoke-virtual {p3, p1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_2

    const-string p1, "url"

    .line 384
    invoke-virtual {p3, p1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    .line 385
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->s:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    invoke-static {p1}, Lcom/moji/webview/datause/WebViewDataUsageHelper;->a(Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;)V

    .line 386
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    invoke-static {p1}, Lcom/moji/webview/datause/WebViewDataUsageHelper;->a(Ljava/lang/String;)Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/credit/CreditWebActivity;->s:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    .line 387
    iget-object p1, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    iget-object p2, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    invoke-virtual {p1, p2}, Lcom/moji/webview/bridge/BridgeWebView;->loadUrl(Ljava/lang/String;)V

    const/4 p1, 0x0

    .line 388
    iput-boolean p1, p0, Lcom/moji/credit/CreditWebActivity;->k:Z

    :cond_2
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 81
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V

    .line 82
    invoke-virtual {p0}, Lcom/moji/credit/CreditWebActivity;->a()V

    .line 83
    invoke-virtual {p0}, Lcom/moji/credit/CreditWebActivity;->e()V

    .line 84
    invoke-virtual {p0}, Lcom/moji/credit/CreditWebActivity;->b()V

    .line 85
    invoke-virtual {p0}, Lcom/moji/credit/CreditWebActivity;->c()V

    .line 86
    invoke-virtual {p0}, Lcom/moji/credit/CreditWebActivity;->d()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    .line 466
    invoke-direct {p0}, Lcom/moji/credit/CreditWebActivity;->l()V

    const/4 p1, 0x1

    return p1

    .line 469
    :cond_0
    invoke-super {p0, p1, p2}, Lcom/moji/base/MJActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method protected onPause()V
    .locals 1

    .line 427
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onPause()V

    .line 428
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->s:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    invoke-static {v0}, Lcom/moji/webview/datause/WebViewDataUsageHelper;->a(Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;)V

    return-void
.end method

.method protected onResume()V
    .locals 4

    .line 433
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onResume()V

    .line 434
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->s:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    if-eqz v0, :cond_0

    .line 435
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->s:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    iget-object v0, v0, Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;->c:Ljava/lang/String;

    invoke-static {v0}, Lcom/moji/webview/datause/WebViewDataUsageHelper;->a(Ljava/lang/String;)Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->s:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    .line 437
    :cond_0
    iget-boolean v0, p0, Lcom/moji/credit/CreditWebActivity;->k:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    .line 438
    invoke-virtual {p0}, Lcom/moji/credit/CreditWebActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v2, "url"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    .line 439
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    iget-object v2, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    invoke-virtual {v0, v2}, Lcom/moji/webview/bridge/BridgeWebView;->loadUrl(Ljava/lang/String;)V

    .line 440
    iput-boolean v1, p0, Lcom/moji/credit/CreditWebActivity;->k:Z

    goto :goto_0

    .line 441
    :cond_1
    iget-boolean v0, p0, Lcom/moji/credit/CreditWebActivity;->l:Z

    if-eqz v0, :cond_2

    .line 442
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    invoke-virtual {v0}, Lcom/moji/webview/bridge/BridgeWebView;->reload()V

    .line 443
    iput-boolean v1, p0, Lcom/moji/credit/CreditWebActivity;->l:Z

    goto :goto_0

    .line 446
    :cond_2
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x13

    if-lt v0, v2, :cond_3

    .line 447
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    const-string v2, "if(window.onDBNewOpenBack){onDBNewOpenBack()}"

    new-instance v3, Lcom/moji/credit/CreditWebActivity$6;

    invoke-direct {v3, p0}, Lcom/moji/credit/CreditWebActivity$6;-><init>(Lcom/moji/credit/CreditWebActivity;)V

    invoke-virtual {v0, v2, v3}, Lcom/moji/webview/bridge/BridgeWebView;->evaluateJavascript(Ljava/lang/String;Lcom/tencent/smtt/sdk/ValueCallback;)V

    goto :goto_0

    .line 453
    :cond_3
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    const-string v2, "javascript:if(window.onDBNewOpenBack){onDBNewOpenBack()}"

    invoke-virtual {v0, v2}, Lcom/moji/webview/bridge/BridgeWebView;->loadUrl(Ljava/lang/String;)V

    .line 457
    :goto_0
    iget-boolean v0, p0, Lcom/moji/credit/CreditWebActivity;->p:Z

    if-eqz v0, :cond_4

    .line 458
    iget-object v0, p0, Lcom/moji/credit/CreditWebActivity;->b:Lcom/moji/webview/bridge/BridgeWebView;

    iget-object v2, p0, Lcom/moji/credit/CreditWebActivity;->i:Ljava/lang/String;

    invoke-virtual {v0, v2}, Lcom/moji/webview/bridge/BridgeWebView;->loadUrl(Ljava/lang/String;)V

    .line 459
    iput-boolean v1, p0, Lcom/moji/credit/CreditWebActivity;->p:Z

    :cond_4
    return-void
.end method
