130 lines
3.2 KiB
Smali
130 lines
3.2 KiB
Smali
.class Lcom/moji/webview/util/WebShare$ShareHandler;
|
|
.super Landroid/os/Handler;
|
|
.source "WebShare.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/moji/webview/util/WebShare;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0xa
|
|
name = "ShareHandler"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Lcom/moji/webview/util/WebShare;
|
|
|
|
.field private final b:Ljava/lang/ref/WeakReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Lcom/moji/webview/util/WebShare;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/moji/webview/util/WebShare;)V
|
|
.locals 1
|
|
|
|
.line 63
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
|
|
|
.line 64
|
|
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/moji/webview/util/WebShare$ShareHandler;->b:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 65
|
|
iget-object p1, p0, Lcom/moji/webview/util/WebShare$ShareHandler;->b:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/moji/webview/util/WebShare;
|
|
|
|
iput-object p1, p0, Lcom/moji/webview/util/WebShare$ShareHandler;->a:Lcom/moji/webview/util/WebShare;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public handleMessage(Landroid/os/Message;)V
|
|
.locals 4
|
|
|
|
.line 70
|
|
iget-object v0, p0, Lcom/moji/webview/util/WebShare$ShareHandler;->a:Lcom/moji/webview/util/WebShare;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 71
|
|
iget v0, p1, Landroid/os/Message;->what:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 73
|
|
:cond_0
|
|
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
.line 74
|
|
iget-object v0, p0, Lcom/moji/webview/util/WebShare$ShareHandler;->a:Lcom/moji/webview/util/WebShare;
|
|
|
|
iget-object v2, p0, Lcom/moji/webview/util/WebShare$ShareHandler;->a:Lcom/moji/webview/util/WebShare;
|
|
|
|
invoke-virtual {v2}, Lcom/moji/webview/util/WebShare;->a()Lcom/tencent/smtt/sdk/WebView;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
const-string v3, "titlebar=0"
|
|
|
|
invoke-virtual {p1, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v2, v1}, Lcom/moji/webview/util/WebShare;->a(Lcom/tencent/smtt/sdk/WebView;Z)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p1
|
|
|
|
.line 75
|
|
iget-object v0, p0, Lcom/moji/webview/util/WebShare$ShareHandler;->a:Lcom/moji/webview/util/WebShare;
|
|
|
|
invoke-static {v0, p1}, Lcom/moji/webview/util/WebShare;->a(Lcom/moji/webview/util/WebShare;Landroid/graphics/Bitmap;)V
|
|
|
|
:cond_2
|
|
:goto_1
|
|
return-void
|
|
.end method
|