Weather/smali_classes4/com/moji/webview/jsfunction/MojiClearStorage$1.smali
2021-05-10 10:13:34 +02:00

96 lines
2.6 KiB
Smali

.class final Lcom/moji/webview/jsfunction/MojiClearStorage$1;
.super Ljava/lang/Object;
.source "MojiClearStorage.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/moji/webview/jsfunction/MojiClearStorage;->a(Lcom/tencent/smtt/sdk/WebView;Landroid/content/Context;)Ljava/lang/String;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/tencent/smtt/sdk/WebView;
.field final synthetic b:Landroid/content/Context;
# direct methods
.method constructor <init>(Lcom/tencent/smtt/sdk/WebView;Landroid/content/Context;)V
.locals 0
.line 20
iput-object p1, p0, Lcom/moji/webview/jsfunction/MojiClearStorage$1;->a:Lcom/tencent/smtt/sdk/WebView;
iput-object p2, p0, Lcom/moji/webview/jsfunction/MojiClearStorage$1;->b:Landroid/content/Context;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 24
iget-object v0, p0, Lcom/moji/webview/jsfunction/MojiClearStorage$1;->a:Lcom/tencent/smtt/sdk/WebView;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/tencent/smtt/sdk/WebView;->clearCache(Z)V
.line 29
:try_start_0
invoke-static {}, Lcom/tencent/smtt/sdk/CookieManager;->getInstance()Lcom/tencent/smtt/sdk/CookieManager;
move-result-object v0
.line 30
invoke-virtual {v0}, Lcom/tencent/smtt/sdk/CookieManager;->removeSessionCookie()V
.line 31
invoke-virtual {v0}, Lcom/tencent/smtt/sdk/CookieManager;->removeAllCookie()V
.line 33
new-instance v0, Lcom/moji/webview/jsfunction/AsyncWebClearCacheTask;
iget-object v1, p0, Lcom/moji/webview/jsfunction/MojiClearStorage$1;->b:Landroid/content/Context;
invoke-direct {v0, v1}, Lcom/moji/webview/jsfunction/AsyncWebClearCacheTask;-><init>(Landroid/content/Context;)V
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Void;
invoke-virtual {v0, v1}, Lcom/moji/webview/jsfunction/AsyncWebClearCacheTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
const-string v1, "LQDEBUG"
.line 35
invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v0
invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
:goto_0
return-void
.end method