You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
197 lines
6.4 KiB
197 lines
6.4 KiB
2 years ago
|
.class final Lcom/viatech/gallery/ShareUtil$1;
|
||
|
.super Landroid/os/Handler;
|
||
|
.source "ShareUtil.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/viatech/gallery/ShareUtil;->shareWechat(Landroid/content/Context;IZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x8
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic val$context:Landroid/content/Context;
|
||
|
|
||
|
.field final synthetic val$fileType:I
|
||
|
|
||
|
.field final synthetic val$moments:Z
|
||
|
|
||
|
.field final synthetic val$shareMsg:Ljava/lang/String;
|
||
|
|
||
|
.field final synthetic val$sharePageUrl:Ljava/lang/String;
|
||
|
|
||
|
.field final synthetic val$thumbUrl:Ljava/lang/String;
|
||
|
|
||
|
.field final synthetic val$title:Ljava/lang/String;
|
||
|
|
||
|
.field final synthetic val$tmpBitmap:Landroid/graphics/Bitmap;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Landroid/os/Looper;Landroid/graphics/Bitmap;Landroid/content/Context;Ljava/lang/String;IZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 146
|
||
|
iput-object p2, p0, Lcom/viatech/gallery/ShareUtil$1;->val$tmpBitmap:Landroid/graphics/Bitmap;
|
||
|
|
||
|
iput-object p3, p0, Lcom/viatech/gallery/ShareUtil$1;->val$context:Landroid/content/Context;
|
||
|
|
||
|
iput-object p4, p0, Lcom/viatech/gallery/ShareUtil$1;->val$thumbUrl:Ljava/lang/String;
|
||
|
|
||
|
iput p5, p0, Lcom/viatech/gallery/ShareUtil$1;->val$fileType:I
|
||
|
|
||
|
iput-boolean p6, p0, Lcom/viatech/gallery/ShareUtil$1;->val$moments:Z
|
||
|
|
||
|
iput-object p7, p0, Lcom/viatech/gallery/ShareUtil$1;->val$sharePageUrl:Ljava/lang/String;
|
||
|
|
||
|
iput-object p8, p0, Lcom/viatech/gallery/ShareUtil$1;->val$title:Ljava/lang/String;
|
||
|
|
||
|
iput-object p9, p0, Lcom/viatech/gallery/ShareUtil$1;->val$shareMsg:Ljava/lang/String;
|
||
|
|
||
|
invoke-direct {p0, p1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public handleMessage(Landroid/os/Message;)V
|
||
|
.locals 7
|
||
|
|
||
|
.prologue
|
||
|
const/4 v6, 0x1
|
||
|
|
||
|
.line 149
|
||
|
invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V
|
||
|
|
||
|
.line 150
|
||
|
iget-object v0, p0, Lcom/viatech/gallery/ShareUtil$1;->val$tmpBitmap:Landroid/graphics/Bitmap;
|
||
|
|
||
|
sget-object v1, Lcom/viatech/gallery/GalleryUtil;->sNullBitmap:Landroid/graphics/Bitmap;
|
||
|
|
||
|
if-ne v0, v1, :cond_1
|
||
|
|
||
|
.line 152
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lcom/viatech/gallery/ShareUtil$1;->val$context:Landroid/content/Context;
|
||
|
|
||
|
invoke-static {v0}, Lcom/viatech/util/VPaiPicasso;->networkPicasso(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Lcom/viatech/gallery/ShareUtil$1;->val$thumbUrl:Ljava/lang/String;
|
||
|
|
||
|
.line 153
|
||
|
invoke-virtual {v0, v1}, Lcom/squareup/picasso/Picasso;->load(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 154
|
||
|
invoke-virtual {v0}, Lcom/squareup/picasso/RequestCreator;->get()Landroid/graphics/Bitmap;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
.line 155
|
||
|
iget v0, p0, Lcom/viatech/gallery/ShareUtil$1;->val$fileType:I
|
||
|
|
||
|
if-ne v0, v6, :cond_0
|
||
|
|
||
|
.line 156
|
||
|
iget-object v0, p0, Lcom/viatech/gallery/ShareUtil$1;->val$context:Landroid/content/Context;
|
||
|
|
||
|
invoke-static {v0, v5}, Lcom/viatech/gallery/ShareUtil;->access$000(Landroid/content/Context;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
.line 158
|
||
|
:cond_0
|
||
|
invoke-static {}, Lcom/viatech/util/weixin/WXManager;->getInstance()Lcom/viatech/util/weixin/WXManager;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-boolean v1, p0, Lcom/viatech/gallery/ShareUtil$1;->val$moments:Z
|
||
|
|
||
|
iget-object v2, p0, Lcom/viatech/gallery/ShareUtil$1;->val$sharePageUrl:Ljava/lang/String;
|
||
|
|
||
|
iget-object v3, p0, Lcom/viatech/gallery/ShareUtil$1;->val$title:Ljava/lang/String;
|
||
|
|
||
|
iget-object v4, p0, Lcom/viatech/gallery/ShareUtil$1;->val$shareMsg:Ljava/lang/String;
|
||
|
|
||
|
const/4 v6, 0x1
|
||
|
|
||
|
invoke-virtual/range {v0 .. v6}, Lcom/viatech/util/weixin/WXManager;->shareWebPage(ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/Bitmap;Z)V
|
||
|
:try_end_0
|
||
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
.line 170
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
.line 159
|
||
|
:catch_0
|
||
|
move-exception v0
|
||
|
|
||
|
.line 160
|
||
|
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 163
|
||
|
:cond_1
|
||
|
iget v0, p0, Lcom/viatech/gallery/ShareUtil$1;->val$fileType:I
|
||
|
|
||
|
if-ne v0, v6, :cond_2
|
||
|
|
||
|
.line 164
|
||
|
iget-object v0, p0, Lcom/viatech/gallery/ShareUtil$1;->val$context:Landroid/content/Context;
|
||
|
|
||
|
iget-object v1, p0, Lcom/viatech/gallery/ShareUtil$1;->val$tmpBitmap:Landroid/graphics/Bitmap;
|
||
|
|
||
|
invoke-static {v0, v1}, Lcom/viatech/gallery/ShareUtil;->access$000(Landroid/content/Context;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
.line 165
|
||
|
invoke-static {}, Lcom/viatech/util/weixin/WXManager;->getInstance()Lcom/viatech/util/weixin/WXManager;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-boolean v1, p0, Lcom/viatech/gallery/ShareUtil$1;->val$moments:Z
|
||
|
|
||
|
iget-object v2, p0, Lcom/viatech/gallery/ShareUtil$1;->val$sharePageUrl:Ljava/lang/String;
|
||
|
|
||
|
iget-object v3, p0, Lcom/viatech/gallery/ShareUtil$1;->val$title:Ljava/lang/String;
|
||
|
|
||
|
iget-object v4, p0, Lcom/viatech/gallery/ShareUtil$1;->val$shareMsg:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual/range {v0 .. v6}, Lcom/viatech/util/weixin/WXManager;->shareWebPage(ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/Bitmap;Z)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 167
|
||
|
:cond_2
|
||
|
invoke-static {}, Lcom/viatech/util/weixin/WXManager;->getInstance()Lcom/viatech/util/weixin/WXManager;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-boolean v1, p0, Lcom/viatech/gallery/ShareUtil$1;->val$moments:Z
|
||
|
|
||
|
iget-object v2, p0, Lcom/viatech/gallery/ShareUtil$1;->val$sharePageUrl:Ljava/lang/String;
|
||
|
|
||
|
iget-object v3, p0, Lcom/viatech/gallery/ShareUtil$1;->val$title:Ljava/lang/String;
|
||
|
|
||
|
iget-object v4, p0, Lcom/viatech/gallery/ShareUtil$1;->val$shareMsg:Ljava/lang/String;
|
||
|
|
||
|
iget-object v5, p0, Lcom/viatech/gallery/ShareUtil$1;->val$tmpBitmap:Landroid/graphics/Bitmap;
|
||
|
|
||
|
invoke-virtual/range {v0 .. v6}, Lcom/viatech/util/weixin/WXManager;->shareWebPage(ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/Bitmap;Z)V
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|