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.
1573 lines
46 KiB
1573 lines
46 KiB
.class public Lcom/viatech/gallery/SendActivity; |
|
.super Landroid/app/Activity; |
|
.source "SendActivity.java" |
|
|
|
# interfaces |
|
.implements Landroid/view/View$OnClickListener; |
|
|
|
|
|
# static fields |
|
.field public static final SHARE_TO_VPAI:I = 0x0 |
|
|
|
.field public static final SHARE_TO_WEIXIN_FRIEND:I = 0x1 |
|
|
|
.field public static final SHARE_TO_WEIXIN_MOMENTS:I = 0x2 |
|
|
|
.field public static final TYPE_PHOTO:I = 0x0 |
|
|
|
.field public static final TYPE_VIDEO:I = 0x1 |
|
|
|
|
|
# instance fields |
|
.field private final TAG:Ljava/lang/String; |
|
|
|
.field private ibtn_share_send_close:Landroid/widget/ImageButton; |
|
|
|
.field private isOnShareToSpace:Z |
|
|
|
.field private isShareFromOss:Z |
|
|
|
.field private layout_share_send_facebook:Landroid/view/View; |
|
|
|
.field private layout_share_send_finish:Landroid/view/View; |
|
|
|
.field private layout_share_send_finish_iv:Landroid/widget/ImageView; |
|
|
|
.field private layout_share_send_finish_tv:Landroid/widget/TextView; |
|
|
|
.field private layout_share_send_mask:Landroid/view/View; |
|
|
|
.field private layout_share_send_others:Landroid/view/View; |
|
|
|
.field private layout_share_send_qq:Landroid/view/View; |
|
|
|
.field private layout_share_send_qq_zone:Landroid/view/View; |
|
|
|
.field private layout_share_send_upload:Landroid/view/View; |
|
|
|
.field private layout_share_send_vpai:Landroid/view/View; |
|
|
|
.field private layout_share_send_weibo:Landroid/view/View; |
|
|
|
.field private layout_share_send_weixin:Landroid/view/View; |
|
|
|
.field private layout_share_send_weixin_moments:Landroid/view/View; |
|
|
|
.field protected mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
.field private mProgressTv:Landroid/widget/TextView; |
|
|
|
.field private mProgressWheel:Lcom/viatech/community/views/ProgressWheel; |
|
|
|
.field private mShareMsg:Ljava/lang/String; |
|
|
|
.field private mShareOnly:Z |
|
|
|
.field private mShareType:I |
|
|
|
.field private mType:I |
|
|
|
.field protected mUserid:Ljava/lang/String; |
|
|
|
.field private mVideoTransfer:Landroid/widget/Button; |
|
|
|
.field private mVpaiUploadController:Lcom/viatech/gallery/VpaiUploadController; |
|
|
|
.field protected pb_share_send_upload:Landroid/widget/ProgressBar; |
|
|
|
.field protected tv_share_send_upload:Landroid/widget/TextView; |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>()V |
|
.locals 3 |
|
|
|
.prologue |
|
const/4 v2, 0x0 |
|
|
|
.line 37 |
|
invoke-direct {p0}, Landroid/app/Activity;-><init>()V |
|
|
|
.line 39 |
|
new-instance v0, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v1, "Vpai_" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
const-class v1, Lcom/viatech/gallery/SendActivity; |
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->TAG:Ljava/lang/String; |
|
|
|
.line 65 |
|
new-instance v0, Lcom/viatech/gallery/VpaiUploadController; |
|
|
|
invoke-direct {v0}, Lcom/viatech/gallery/VpaiUploadController;-><init>()V |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->mVpaiUploadController:Lcom/viatech/gallery/VpaiUploadController; |
|
|
|
.line 66 |
|
iput-boolean v2, p0, Lcom/viatech/gallery/SendActivity;->isShareFromOss:Z |
|
|
|
.line 67 |
|
iput-boolean v2, p0, Lcom/viatech/gallery/SendActivity;->isOnShareToSpace:Z |
|
|
|
return-void |
|
.end method |
|
|
|
.method static synthetic access$002(Lcom/viatech/gallery/SendActivity;Z)Z |
|
.locals 0 |
|
|
|
.prologue |
|
.line 37 |
|
iput-boolean p1, p0, Lcom/viatech/gallery/SendActivity;->isOnShareToSpace:Z |
|
|
|
return p1 |
|
.end method |
|
|
|
.method static synthetic access$100(Lcom/viatech/gallery/SendActivity;)Ljava/lang/String; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 37 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->TAG:Ljava/lang/String; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$200(Lcom/viatech/gallery/SendActivity;)Lcom/viatech/community/views/ProgressWheel; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 37 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mProgressWheel:Lcom/viatech/community/views/ProgressWheel; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$300(Lcom/viatech/gallery/SendActivity;)Landroid/view/View; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 37 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_mask:Landroid/view/View; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$400(Lcom/viatech/gallery/SendActivity;)Landroid/widget/ImageButton; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 37 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->ibtn_share_send_close:Landroid/widget/ImageButton; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method private findViews()V |
|
.locals 2 |
|
|
|
.prologue |
|
const/16 v1, 0x8 |
|
|
|
.line 87 |
|
const v0, 0x7f0c00ef |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_finish:Landroid/view/View; |
|
|
|
.line 88 |
|
const v0, 0x7f0c00f5 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/Button; |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->mVideoTransfer:Landroid/widget/Button; |
|
|
|
.line 89 |
|
const v0, 0x7f0c00f0 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/ImageView; |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_finish_iv:Landroid/widget/ImageView; |
|
|
|
.line 90 |
|
const v0, 0x7f0c00f1 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_finish_tv:Landroid/widget/TextView; |
|
|
|
.line 91 |
|
const v0, 0x7f0c00f6 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_vpai:Landroid/view/View; |
|
|
|
.line 92 |
|
const v0, 0x7f0c00f7 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_weibo:Landroid/view/View; |
|
|
|
.line 93 |
|
const v0, 0x7f0c00f8 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_weixin:Landroid/view/View; |
|
|
|
.line 94 |
|
const v0, 0x7f0c00f9 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_weixin_moments:Landroid/view/View; |
|
|
|
.line 95 |
|
const v0, 0x7f0c00fa |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_facebook:Landroid/view/View; |
|
|
|
.line 96 |
|
const v0, 0x7f0c00fb |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_qq:Landroid/view/View; |
|
|
|
.line 97 |
|
const v0, 0x7f0c00fc |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_qq_zone:Landroid/view/View; |
|
|
|
.line 98 |
|
const v0, 0x7f0c00fd |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_others:Landroid/view/View; |
|
|
|
.line 99 |
|
const v0, 0x7f0c0271 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/viatech/community/views/ProgressWheel; |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->mProgressWheel:Lcom/viatech/community/views/ProgressWheel; |
|
|
|
.line 100 |
|
const v0, 0x7f0c0272 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->mProgressTv:Landroid/widget/TextView; |
|
|
|
.line 101 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mProgressWheel:Lcom/viatech/community/views/ProgressWheel; |
|
|
|
invoke-virtual {v0, v1}, Lcom/viatech/community/views/ProgressWheel;->setVisibility(I)V |
|
|
|
.line 102 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mProgressTv:Landroid/widget/TextView; |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V |
|
|
|
.line 103 |
|
const v0, 0x7f0c00f2 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_upload:Landroid/view/View; |
|
|
|
.line 104 |
|
const v0, 0x7f0c00f3 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/ProgressBar; |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->pb_share_send_upload:Landroid/widget/ProgressBar; |
|
|
|
.line 105 |
|
const v0, 0x7f0c00f4 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->tv_share_send_upload:Landroid/widget/TextView; |
|
|
|
.line 107 |
|
const v0, 0x7f0c00fe |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_mask:Landroid/view/View; |
|
|
|
.line 108 |
|
const v0, 0x7f0c00ff |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/ImageButton; |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->ibtn_share_send_close:Landroid/widget/ImageButton; |
|
|
|
.line 110 |
|
sget-boolean v0, Lcom/viatech/a;->q:Z |
|
|
|
if-nez v0, :cond_0 |
|
|
|
.line 111 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_vpai:Landroid/view/View; |
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V |
|
|
|
.line 113 |
|
:cond_0 |
|
sget-boolean v0, Lcom/viatech/a;->n:Z |
|
|
|
if-nez v0, :cond_1 |
|
|
|
.line 114 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_weibo:Landroid/view/View; |
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V |
|
|
|
.line 116 |
|
:cond_1 |
|
sget-boolean v0, Lcom/viatech/a;->m:Z |
|
|
|
if-nez v0, :cond_2 |
|
|
|
.line 117 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_weixin:Landroid/view/View; |
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V |
|
|
|
.line 118 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_weixin_moments:Landroid/view/View; |
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V |
|
|
|
.line 120 |
|
:cond_2 |
|
sget-boolean v0, Lcom/viatech/a;->k:Z |
|
|
|
if-eqz v0, :cond_3 |
|
|
|
.line 121 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_qq:Landroid/view/View; |
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V |
|
|
|
.line 122 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_qq_zone:Landroid/view/View; |
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V |
|
|
|
.line 124 |
|
:cond_3 |
|
return-void |
|
.end method |
|
|
|
.method private initData()V |
|
.locals 15 |
|
|
|
.prologue |
|
const/4 v14, 0x1 |
|
|
|
const/16 v13, 0x8 |
|
|
|
const/4 v12, 0x0 |
|
|
|
.line 210 |
|
invoke-static {}, Lcom/viatech/cloud/CloudConfig;->curUser()Lcom/viatech/cloud/CloudConfig$LoginUser; |
|
|
|
move-result-object v11 |
|
|
|
.line 211 |
|
if-nez v11, :cond_1 |
|
|
|
.line 212 |
|
const v0, 0x7f07010c |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
.line 213 |
|
invoke-virtual {p0}, Lcom/viatech/gallery/SendActivity;->finish()V |
|
|
|
.line 283 |
|
:cond_0 |
|
:goto_0 |
|
return-void |
|
|
|
.line 216 |
|
:cond_1 |
|
iget-object v0, v11, Lcom/viatech/cloud/CloudConfig$LoginUser;->userid:Ljava/lang/String; |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->mUserid:Ljava/lang/String; |
|
|
|
.line 218 |
|
invoke-virtual {p0}, Lcom/viatech/gallery/SendActivity;->getIntent()Landroid/content/Intent; |
|
|
|
move-result-object v0 |
|
|
|
.line 219 |
|
const-string v1, "Type" |
|
|
|
invoke-virtual {v0, v1, v12}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I |
|
|
|
move-result v1 |
|
|
|
iput v1, p0, Lcom/viatech/gallery/SendActivity;->mType:I |
|
|
|
.line 220 |
|
const-string v1, "ShareMsg" |
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
iput-object v1, p0, Lcom/viatech/gallery/SendActivity;->mShareMsg:Ljava/lang/String; |
|
|
|
.line 221 |
|
const-string v1, "ShareOnly" |
|
|
|
invoke-virtual {v0, v1, v12}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z |
|
|
|
move-result v1 |
|
|
|
iput-boolean v1, p0, Lcom/viatech/gallery/SendActivity;->mShareOnly:Z |
|
|
|
.line 222 |
|
const-string v1, "ShareType" |
|
|
|
invoke-virtual {v0, v1, v12}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I |
|
|
|
move-result v1 |
|
|
|
iput v1, p0, Lcom/viatech/gallery/SendActivity;->mShareType:I |
|
|
|
.line 223 |
|
const-string v1, "ShareFromOss" |
|
|
|
invoke-virtual {v0, v1, v12}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z |
|
|
|
move-result v1 |
|
|
|
iput-boolean v1, p0, Lcom/viatech/gallery/SendActivity;->isShareFromOss:Z |
|
|
|
.line 225 |
|
iget v1, p0, Lcom/viatech/gallery/SendActivity;->mType:I |
|
|
|
if-nez v1, :cond_5 |
|
|
|
.line 226 |
|
const-string v1, "FileList" |
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0, v12}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/viatech/gallery/FileInfo; |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
.line 227 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mVideoTransfer:Landroid/widget/Button; |
|
|
|
invoke-virtual {v0, v13}, Landroid/widget/Button;->setVisibility(I)V |
|
|
|
.line 232 |
|
:cond_2 |
|
:goto_1 |
|
iget-boolean v0, p0, Lcom/viatech/gallery/SendActivity;->isShareFromOss:Z |
|
|
|
if-eqz v0, :cond_6 |
|
|
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/gallery/FileInfo;->is3DVideo()Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_6 |
|
|
|
invoke-static {}, Lcom/viatech/Config;->a()Lcom/viatech/Config; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Lcom/viatech/Config;->g()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_6 |
|
|
|
.line 233 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mVideoTransfer:Landroid/widget/Button; |
|
|
|
invoke-virtual {v0, v12}, Landroid/widget/Button;->setVisibility(I)V |
|
|
|
.line 238 |
|
:goto_2 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->TAG:Ljava/lang/String; |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
invoke-virtual {v1}, Lcom/viatech/gallery/FileInfo;->toString()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 239 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->pb_share_send_upload:Landroid/widget/ProgressBar; |
|
|
|
invoke-virtual {v0, v12}, Landroid/widget/ProgressBar;->setProgress(I)V |
|
|
|
.line 240 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mVpaiUploadController:Lcom/viatech/gallery/VpaiUploadController; |
|
|
|
iget-object v2, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_finish:Landroid/view/View; |
|
|
|
iget-object v3, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_upload:Landroid/view/View; |
|
|
|
iget-object v4, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_mask:Landroid/view/View; |
|
|
|
iget-object v5, p0, Lcom/viatech/gallery/SendActivity;->mVideoTransfer:Landroid/widget/Button; |
|
|
|
iget v6, p0, Lcom/viatech/gallery/SendActivity;->mShareType:I |
|
|
|
iget-boolean v7, p0, Lcom/viatech/gallery/SendActivity;->mShareOnly:Z |
|
|
|
iget-object v8, p0, Lcom/viatech/gallery/SendActivity;->mShareMsg:Ljava/lang/String; |
|
|
|
iget-object v9, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget v10, p0, Lcom/viatech/gallery/SendActivity;->mType:I |
|
|
|
move-object v1, p0 |
|
|
|
invoke-virtual/range {v0 .. v10}, Lcom/viatech/gallery/VpaiUploadController;->onCreate(Landroid/app/Activity;Landroid/view/View;Landroid/view/View;Landroid/view/View;Landroid/view/View;IZLjava/lang/String;Lcom/viatech/gallery/FileInfo;I)V |
|
|
|
.line 241 |
|
iget-boolean v0, p0, Lcom/viatech/gallery/SendActivity;->mShareOnly:Z |
|
|
|
if-eqz v0, :cond_a |
|
|
|
.line 242 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_finish:Landroid/view/View; |
|
|
|
invoke-virtual {v0, v12}, Landroid/view/View;->setVisibility(I)V |
|
|
|
.line 246 |
|
iget-boolean v0, p0, Lcom/viatech/gallery/SendActivity;->isShareFromOss:Z |
|
|
|
if-eqz v0, :cond_3 |
|
|
|
.line 247 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_finish_iv:Landroid/widget/ImageView; |
|
|
|
const v1, 0x7f0201dc |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V |
|
|
|
.line 248 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_finish_tv:Landroid/widget/TextView; |
|
|
|
invoke-virtual {v0, v13}, Landroid/widget/TextView;->setVisibility(I)V |
|
|
|
.line 252 |
|
:cond_3 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_upload:Landroid/view/View; |
|
|
|
invoke-virtual {v0, v13}, Landroid/view/View;->setVisibility(I)V |
|
|
|
.line 253 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_mask:Landroid/view/View; |
|
|
|
invoke-virtual {v0, v13}, Landroid/view/View;->setVisibility(I)V |
|
|
|
.line 255 |
|
iget v0, p0, Lcom/viatech/gallery/SendActivity;->mType:I |
|
|
|
if-nez v0, :cond_7 |
|
|
|
.line 256 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v1, v1, Lcom/viatech/gallery/FileInfo;->url:Ljava/lang/String; |
|
|
|
iput-object v1, v0, Lcom/viatech/gallery/FileInfo;->shareUrl:Ljava/lang/String; |
|
|
|
.line 264 |
|
:cond_4 |
|
:goto_3 |
|
iget v0, p0, Lcom/viatech/gallery/SendActivity;->mShareType:I |
|
|
|
if-ne v0, v14, :cond_9 |
|
|
|
.line 265 |
|
invoke-direct {p0, v12}, Lcom/viatech/gallery/SendActivity;->shareToWeixin(Z)V |
|
|
|
goto/16 :goto_0 |
|
|
|
.line 228 |
|
:cond_5 |
|
iget v1, p0, Lcom/viatech/gallery/SendActivity;->mType:I |
|
|
|
if-ne v1, v14, :cond_2 |
|
|
|
.line 229 |
|
const-string v1, "FileInfo" |
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/viatech/gallery/FileInfo; |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
goto/16 :goto_1 |
|
|
|
.line 235 |
|
:cond_6 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mVideoTransfer:Landroid/widget/Button; |
|
|
|
invoke-virtual {v0, v13}, Landroid/widget/Button;->setVisibility(I)V |
|
|
|
goto :goto_2 |
|
|
|
.line 257 |
|
:cond_7 |
|
iget v0, p0, Lcom/viatech/gallery/SendActivity;->mType:I |
|
|
|
if-ne v0, v14, :cond_4 |
|
|
|
.line 258 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v0, v0, Lcom/viatech/gallery/FileInfo;->serverFileName:Ljava/lang/String; |
|
|
|
if-nez v0, :cond_8 |
|
|
|
.line 259 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v1, v1, Lcom/viatech/gallery/FileInfo;->url:Ljava/lang/String; |
|
|
|
iput-object v1, v0, Lcom/viatech/gallery/FileInfo;->shareUrl:Ljava/lang/String; |
|
|
|
goto :goto_3 |
|
|
|
.line 261 |
|
:cond_8 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
invoke-virtual {v1}, Lcom/viatech/gallery/FileInfo;->getSharePageUrl()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
iput-object v1, v0, Lcom/viatech/gallery/FileInfo;->shareUrl:Ljava/lang/String; |
|
|
|
goto :goto_3 |
|
|
|
.line 266 |
|
:cond_9 |
|
iget v0, p0, Lcom/viatech/gallery/SendActivity;->mShareType:I |
|
|
|
const/4 v1, 0x2 |
|
|
|
if-ne v0, v1, :cond_0 |
|
|
|
.line 267 |
|
invoke-direct {p0, v14}, Lcom/viatech/gallery/SendActivity;->shareToWeixin(Z)V |
|
|
|
goto/16 :goto_0 |
|
|
|
.line 271 |
|
:cond_a |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->tv_share_send_upload:Landroid/widget/TextView; |
|
|
|
const v1, 0x7f070181 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V |
|
|
|
.line 272 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_finish:Landroid/view/View; |
|
|
|
invoke-virtual {v0, v13}, Landroid/view/View;->setVisibility(I)V |
|
|
|
.line 273 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_upload:Landroid/view/View; |
|
|
|
invoke-virtual {v0, v12}, Landroid/view/View;->setVisibility(I)V |
|
|
|
.line 274 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mVideoTransfer:Landroid/widget/Button; |
|
|
|
invoke-virtual {v0, v13}, Landroid/widget/Button;->setVisibility(I)V |
|
|
|
.line 275 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_mask:Landroid/view/View; |
|
|
|
invoke-virtual {v0, v12}, Landroid/view/View;->setVisibility(I)V |
|
|
|
.line 276 |
|
invoke-virtual {v11}, Lcom/viatech/cloud/CloudConfig$LoginUser;->isCloudLogin()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_b |
|
|
|
.line 277 |
|
invoke-direct {p0}, Lcom/viatech/gallery/SendActivity;->startUpload()V |
|
|
|
goto/16 :goto_0 |
|
|
|
.line 279 |
|
:cond_b |
|
const v0, 0x7f0700fb |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
.line 280 |
|
invoke-virtual {p0}, Lcom/viatech/gallery/SendActivity;->finish()V |
|
|
|
goto/16 :goto_0 |
|
.end method |
|
|
|
.method private onClickShareVpai()V |
|
.locals 10 |
|
|
|
.prologue |
|
.line 184 |
|
iget-boolean v0, p0, Lcom/viatech/gallery/SendActivity;->isOnShareToSpace:Z |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 207 |
|
:goto_0 |
|
return-void |
|
|
|
.line 187 |
|
:cond_0 |
|
new-instance v0, Lcom/viatech/community/views/a/b; |
|
|
|
invoke-direct {v0, p0}, Lcom/viatech/community/views/a/b;-><init>(Landroid/content/Context;)V |
|
|
|
.line 188 |
|
invoke-virtual {v0}, Lcom/viatech/community/views/a/b;->show()V |
|
|
|
.line 189 |
|
const/4 v1, 0x1 |
|
|
|
iput-boolean v1, p0, Lcom/viatech/gallery/SendActivity;->isOnShareToSpace:Z |
|
|
|
.line 190 |
|
iget v2, p0, Lcom/viatech/gallery/SendActivity;->mType:I |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v3, v1, Lcom/viatech/gallery/FileInfo;->name:Ljava/lang/String; |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-wide v4, v1, Lcom/viatech/gallery/FileInfo;->lsize:J |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v6, v1, Lcom/viatech/gallery/FileInfo;->shareUrl:Ljava/lang/String; |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v7, v1, Lcom/viatech/gallery/FileInfo;->thumbnailUrl:Ljava/lang/String; |
|
|
|
iget-object v8, p0, Lcom/viatech/gallery/SendActivity;->mShareMsg:Ljava/lang/String; |
|
|
|
new-instance v9, Lcom/viatech/gallery/SendActivity$1; |
|
|
|
invoke-direct {v9, p0, v0}, Lcom/viatech/gallery/SendActivity$1;-><init>(Lcom/viatech/gallery/SendActivity;Lcom/viatech/community/views/a/b;)V |
|
|
|
move-object v1, p0 |
|
|
|
invoke-static/range {v1 .. v9}, Lcom/viatech/gallery/ShareUtil;->shareVpai(Landroid/content/Context;ILjava/lang/String;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/via/vpaicloud/community/callback/CommunityHttpCallback;)V |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method private requestStereoVideoProcess()V |
|
.locals 5 |
|
|
|
.prologue |
|
.line 315 |
|
invoke-static {}, Lcom/viatech/cloud/CloudConfig;->curUser()Lcom/viatech/cloud/CloudConfig$LoginUser; |
|
|
|
move-result-object v1 |
|
|
|
.line 316 |
|
iget-object v0, v1, Lcom/viatech/cloud/CloudConfig$LoginUser;->unionid:Ljava/lang/String; |
|
|
|
.line 317 |
|
if-nez v0, :cond_0 |
|
|
|
.line 318 |
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->TAG:Ljava/lang/String; |
|
|
|
new-instance v2, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v3, "invalid user uuid: " |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 369 |
|
:goto_0 |
|
return-void |
|
|
|
.line 321 |
|
:cond_0 |
|
invoke-virtual {v1}, Lcom/viatech/cloud/CloudConfig$LoginUser;->isWXLogin()Z |
|
|
|
move-result v2 |
|
|
|
if-eqz v2, :cond_2 |
|
|
|
.line 322 |
|
new-instance v0, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "WX:" |
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v1, v1, Lcom/viatech/cloud/CloudConfig$LoginUser;->unionid:Ljava/lang/String; |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
.line 328 |
|
:cond_1 |
|
:goto_1 |
|
new-instance v1, Lcom/via/vpaicloud/community/request/StereoProcessReq; |
|
|
|
invoke-direct {v1}, Lcom/via/vpaicloud/community/request/StereoProcessReq;-><init>()V |
|
|
|
.line 329 |
|
iput-object v0, v1, Lcom/via/vpaicloud/community/request/StereoProcessReq;->uuid:Ljava/lang/String; |
|
|
|
.line 330 |
|
iget-object v2, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v2, v2, Lcom/viatech/gallery/FileInfo;->shareUrl:Ljava/lang/String; |
|
|
|
iput-object v2, v1, Lcom/via/vpaicloud/community/request/StereoProcessReq;->videoUrl:Ljava/lang/String; |
|
|
|
.line 331 |
|
iget-object v2, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v2, v2, Lcom/viatech/gallery/FileInfo;->thumbnailUrl:Ljava/lang/String; |
|
|
|
iput-object v2, v1, Lcom/via/vpaicloud/community/request/StereoProcessReq;->thumbUrl:Ljava/lang/String; |
|
|
|
.line 333 |
|
iget-object v2, p0, Lcom/viatech/gallery/SendActivity;->TAG:Ljava/lang/String; |
|
|
|
new-instance v3, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v4, "StereoProcessReq: uuid: " |
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v3 |
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
const-string v3, ", videoUrl: " |
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v3, v1, Lcom/via/vpaicloud/community/request/StereoProcessReq;->videoUrl:Ljava/lang/String; |
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
const-string v3, ", thumbUrl: " |
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v3, v1, Lcom/via/vpaicloud/community/request/StereoProcessReq;->thumbUrl:Ljava/lang/String; |
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 335 |
|
invoke-static {}, Lcom/via/vpaicloud/storage/a;->a()Lcom/via/vpaicloud/storage/a; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v2, Lcom/viatech/gallery/SendActivity$2; |
|
|
|
invoke-direct {v2, p0}, Lcom/viatech/gallery/SendActivity$2;-><init>(Lcom/viatech/gallery/SendActivity;)V |
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/via/vpaicloud/storage/a;->a(Lcom/via/vpaicloud/community/request/StereoProcessReq;Lcom/via/vpaicloud/storage/a$a;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 323 |
|
:cond_2 |
|
invoke-virtual {v1}, Lcom/viatech/cloud/CloudConfig$LoginUser;->isFBLogin()Z |
|
|
|
move-result v2 |
|
|
|
if-eqz v2, :cond_3 |
|
|
|
.line 324 |
|
new-instance v0, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "FB:" |
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v1, v1, Lcom/viatech/cloud/CloudConfig$LoginUser;->unionid:Ljava/lang/String; |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_1 |
|
|
|
.line 325 |
|
:cond_3 |
|
invoke-virtual {v1}, Lcom/viatech/cloud/CloudConfig$LoginUser;->isLINELogin()Z |
|
|
|
move-result v2 |
|
|
|
if-eqz v2, :cond_1 |
|
|
|
.line 326 |
|
new-instance v0, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "LI:" |
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v1, v1, Lcom/viatech/cloud/CloudConfig$LoginUser;->unionid:Ljava/lang/String; |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
goto/16 :goto_1 |
|
.end method |
|
|
|
.method private setListener()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 127 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_vpai:Landroid/view/View; |
|
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 128 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_weibo:Landroid/view/View; |
|
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 129 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_weixin:Landroid/view/View; |
|
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 130 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_weixin_moments:Landroid/view/View; |
|
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 131 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_facebook:Landroid/view/View; |
|
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 132 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_qq:Landroid/view/View; |
|
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 133 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_qq_zone:Landroid/view/View; |
|
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 134 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_others:Landroid/view/View; |
|
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 135 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->ibtn_share_send_close:Landroid/widget/ImageButton; |
|
|
|
invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 136 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mVideoTransfer:Landroid/widget/Button; |
|
|
|
invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 137 |
|
return-void |
|
.end method |
|
|
|
.method private shareToWeixin(Z)V |
|
.locals 11 |
|
|
|
.prologue |
|
.line 304 |
|
iget v1, p0, Lcom/viatech/gallery/SendActivity;->mType:I |
|
|
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/gallery/FileInfo;->getSharePageUrl()Ljava/lang/String; |
|
|
|
move-result-object v3 |
|
|
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v4, v0, Lcom/viatech/gallery/FileInfo;->thumbnailUrl:Ljava/lang/String; |
|
|
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/gallery/FileInfo;->getFullPath()Ljava/lang/String; |
|
|
|
move-result-object v5 |
|
|
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v6, v0, Lcom/viatech/gallery/FileInfo;->thumbnailPath:Ljava/lang/String; |
|
|
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v7, v0, Lcom/viatech/gallery/FileInfo;->path:Ljava/lang/String; |
|
|
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v8, v0, Lcom/viatech/gallery/FileInfo;->url:Ljava/lang/String; |
|
|
|
iget-boolean v9, p0, Lcom/viatech/gallery/SendActivity;->mShareOnly:Z |
|
|
|
iget-object v10, p0, Lcom/viatech/gallery/SendActivity;->mShareMsg:Ljava/lang/String; |
|
|
|
move-object v0, p0 |
|
|
|
move v2, p1 |
|
|
|
invoke-static/range {v0 .. v10}, 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 |
|
|
|
.line 306 |
|
return-void |
|
.end method |
|
|
|
.method private startUpload()V |
|
.locals 13 |
|
|
|
.prologue |
|
const/4 v10, 0x2 |
|
|
|
const/4 v9, 0x1 |
|
|
|
const/4 v8, 0x0 |
|
|
|
.line 286 |
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mVpaiUploadController:Lcom/viatech/gallery/VpaiUploadController; |
|
|
|
new-instance v2, Lcom/viatech/gallery/BaseUploadController$UploadBean; |
|
|
|
iget-object v3, p0, Lcom/viatech/gallery/SendActivity;->mVpaiUploadController:Lcom/viatech/gallery/VpaiUploadController; |
|
|
|
invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class; |
|
|
|
iget-object v4, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v5, p0, Lcom/viatech/gallery/SendActivity;->mUserid:Ljava/lang/String; |
|
|
|
iget v0, p0, Lcom/viatech/gallery/SendActivity;->mType:I |
|
|
|
if-nez v0, :cond_0 |
|
|
|
move v0, v8 |
|
|
|
:goto_0 |
|
invoke-direct {v2, v3, v4, v5, v0}, Lcom/viatech/gallery/BaseUploadController$UploadBean;-><init>(Lcom/viatech/gallery/BaseUploadController;Lcom/viatech/gallery/FileInfo;Ljava/lang/String;I)V |
|
|
|
invoke-virtual {v1, v2}, Lcom/viatech/gallery/VpaiUploadController;->createTask(Lcom/viatech/gallery/BaseUploadController$UploadBean;)Lcom/viatech/gallery/BaseUploadController$UploadTask; |
|
|
|
move-result-object v11 |
|
|
|
.line 287 |
|
iget-object v12, p0, Lcom/viatech/gallery/SendActivity;->mVpaiUploadController:Lcom/viatech/gallery/VpaiUploadController; |
|
|
|
new-instance v0, Lcom/viatech/gallery/BaseUploadController$UploadBean; |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mVpaiUploadController:Lcom/viatech/gallery/VpaiUploadController; |
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class; |
|
|
|
iget-object v2, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v3, p0, Lcom/viatech/gallery/SendActivity;->mUserid:Ljava/lang/String; |
|
|
|
iget v4, p0, Lcom/viatech/gallery/SendActivity;->mType:I |
|
|
|
if-nez v4, :cond_1 |
|
|
|
move v4, v9 |
|
|
|
:goto_1 |
|
iget-object v5, p0, Lcom/viatech/gallery/SendActivity;->pb_share_send_upload:Landroid/widget/ProgressBar; |
|
|
|
iget-object v6, p0, Lcom/viatech/gallery/SendActivity;->tv_share_send_upload:Landroid/widget/TextView; |
|
|
|
const v7, 0x7f070181 |
|
|
|
invoke-virtual {p0, v7}, Lcom/viatech/gallery/SendActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v7 |
|
|
|
invoke-direct/range {v0 .. v7}, Lcom/viatech/gallery/BaseUploadController$UploadBean;-><init>(Lcom/viatech/gallery/BaseUploadController;Lcom/viatech/gallery/FileInfo;Ljava/lang/String;ILandroid/widget/ProgressBar;Landroid/widget/TextView;Ljava/lang/String;)V |
|
|
|
iget-object v1, v11, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean; |
|
|
|
invoke-virtual {v12, v0, v1}, Lcom/viatech/gallery/VpaiUploadController;->createTask(Lcom/viatech/gallery/BaseUploadController$UploadBean;Lcom/viatech/gallery/BaseUploadController$UploadBean;)Lcom/viatech/gallery/BaseUploadController$UploadTask; |
|
|
|
move-result-object v0 |
|
|
|
.line 288 |
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mVpaiUploadController:Lcom/viatech/gallery/VpaiUploadController; |
|
|
|
new-array v2, v10, [Lcom/viatech/gallery/BaseUploadController$UploadTask; |
|
|
|
aput-object v11, v2, v8 |
|
|
|
aput-object v0, v2, v9 |
|
|
|
invoke-virtual {v1, v2}, Lcom/viatech/gallery/VpaiUploadController;->startUpload([Lcom/viatech/gallery/BaseUploadController$UploadTask;)V |
|
|
|
.line 289 |
|
return-void |
|
|
|
.line 286 |
|
:cond_0 |
|
const/4 v0, 0x3 |
|
|
|
goto :goto_0 |
|
|
|
:cond_1 |
|
move v4, v10 |
|
|
|
.line 287 |
|
goto :goto_1 |
|
.end method |
|
|
|
.method private stopAllUpload()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 309 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mVpaiUploadController:Lcom/viatech/gallery/VpaiUploadController; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/gallery/VpaiUploadController;->stopUpload()V |
|
|
|
.line 310 |
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public onBackPressed()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 299 |
|
invoke-super {p0}, Landroid/app/Activity;->onBackPressed()V |
|
|
|
.line 300 |
|
invoke-direct {p0}, Lcom/viatech/gallery/SendActivity;->stopAllUpload()V |
|
|
|
.line 301 |
|
return-void |
|
.end method |
|
|
|
.method public onClick(Landroid/view/View;)V |
|
.locals 3 |
|
|
|
.prologue |
|
const/4 v1, 0x0 |
|
|
|
.line 141 |
|
invoke-virtual {p1}, Landroid/view/View;->getId()I |
|
|
|
move-result v0 |
|
|
|
packed-switch v0, :pswitch_data_0 |
|
|
|
.line 181 |
|
:goto_0 |
|
:pswitch_0 |
|
return-void |
|
|
|
.line 143 |
|
:pswitch_1 |
|
invoke-direct {p0}, Lcom/viatech/gallery/SendActivity;->onClickShareVpai()V |
|
|
|
goto :goto_0 |
|
|
|
.line 146 |
|
:pswitch_2 |
|
iget v0, p0, Lcom/viatech/gallery/SendActivity;->mType:I |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mShareMsg:Ljava/lang/String; |
|
|
|
iget-object v2, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
invoke-virtual {v2}, Lcom/viatech/gallery/FileInfo;->getSharePageUrl()Ljava/lang/String; |
|
|
|
move-result-object v2 |
|
|
|
invoke-static {p0, v0, v1, v2}, Lcom/viatech/gallery/ShareUtil;->shareWeibo(Landroid/app/Activity;ILjava/lang/String;Ljava/lang/String;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 149 |
|
:pswitch_3 |
|
invoke-direct {p0, v1}, Lcom/viatech/gallery/SendActivity;->shareToWeixin(Z)V |
|
|
|
goto :goto_0 |
|
|
|
.line 152 |
|
:pswitch_4 |
|
const/4 v0, 0x1 |
|
|
|
invoke-direct {p0, v0}, Lcom/viatech/gallery/SendActivity;->shareToWeixin(Z)V |
|
|
|
goto :goto_0 |
|
|
|
.line 155 |
|
:pswitch_5 |
|
iget-boolean v0, p0, Lcom/viatech/gallery/SendActivity;->mShareOnly:Z |
|
|
|
if-nez v0, :cond_0 |
|
|
|
.line 156 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v1, v1, Lcom/viatech/gallery/FileInfo;->shareUrl:Ljava/lang/String; |
|
|
|
iput-object v1, v0, Lcom/viatech/gallery/FileInfo;->url:Ljava/lang/String; |
|
|
|
.line 157 |
|
:cond_0 |
|
invoke-static {}, Lcom/viatech/util/SocialShareUtil;->instance()Lcom/viatech/util/SocialShareUtil; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-boolean v2, p0, Lcom/viatech/gallery/SendActivity;->mShareOnly:Z |
|
|
|
invoke-virtual {v0, p0, v1, v2}, Lcom/viatech/util/SocialShareUtil;->shareLink2Facebook(Landroid/app/Activity;Lcom/viatech/gallery/FileInfo;Z)V |
|
|
|
goto :goto_0 |
|
|
|
.line 160 |
|
:pswitch_6 |
|
iget v0, p0, Lcom/viatech/gallery/SendActivity;->mType:I |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mShareMsg:Ljava/lang/String; |
|
|
|
iget-object v2, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
invoke-virtual {v2}, Lcom/viatech/gallery/FileInfo;->getSharePageUrl()Ljava/lang/String; |
|
|
|
move-result-object v2 |
|
|
|
invoke-static {p0, v0, v1, v2}, Lcom/viatech/gallery/ShareUtil;->shareQQ(Landroid/app/Activity;ILjava/lang/String;Ljava/lang/String;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 163 |
|
:pswitch_7 |
|
iget v0, p0, Lcom/viatech/gallery/SendActivity;->mType:I |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mShareMsg:Ljava/lang/String; |
|
|
|
iget-object v2, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
invoke-virtual {v2}, Lcom/viatech/gallery/FileInfo;->getSharePageUrl()Ljava/lang/String; |
|
|
|
move-result-object v2 |
|
|
|
invoke-static {p0, v0, v1, v2}, Lcom/viatech/gallery/ShareUtil;->shareQQZone(Landroid/app/Activity;ILjava/lang/String;Ljava/lang/String;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 166 |
|
:pswitch_8 |
|
iget v0, p0, Lcom/viatech/gallery/SendActivity;->mType:I |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendActivity;->mShareMsg:Ljava/lang/String; |
|
|
|
iget-object v2, p0, Lcom/viatech/gallery/SendActivity;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
invoke-static {p0, v0, v1, v2}, Lcom/viatech/gallery/ShareUtil;->shareOthers(Landroid/app/Activity;ILjava/lang/String;Lcom/viatech/gallery/FileInfo;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 169 |
|
:pswitch_9 |
|
invoke-direct {p0}, Lcom/viatech/gallery/SendActivity;->stopAllUpload()V |
|
|
|
.line 170 |
|
invoke-virtual {p0}, Lcom/viatech/gallery/SendActivity;->finish()V |
|
|
|
goto :goto_0 |
|
|
|
.line 173 |
|
:pswitch_a |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mProgressWheel:Lcom/viatech/community/views/ProgressWheel; |
|
|
|
invoke-virtual {v0, v1}, Lcom/viatech/community/views/ProgressWheel;->setVisibility(I)V |
|
|
|
.line 174 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->layout_share_send_mask:Landroid/view/View; |
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V |
|
|
|
.line 175 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->ibtn_share_send_close:Landroid/widget/ImageButton; |
|
|
|
const/16 v1, 0x8 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V |
|
|
|
.line 176 |
|
invoke-direct {p0}, Lcom/viatech/gallery/SendActivity;->requestStereoVideoProcess()V |
|
|
|
goto :goto_0 |
|
|
|
.line 141 |
|
:pswitch_data_0 |
|
.packed-switch 0x7f0c00f5 |
|
:pswitch_a |
|
:pswitch_1 |
|
:pswitch_2 |
|
:pswitch_3 |
|
:pswitch_4 |
|
:pswitch_5 |
|
:pswitch_6 |
|
:pswitch_7 |
|
:pswitch_8 |
|
:pswitch_0 |
|
:pswitch_9 |
|
.end packed-switch |
|
.end method |
|
|
|
.method protected onCreate(Landroid/os/Bundle;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 71 |
|
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V |
|
|
|
.line 73 |
|
invoke-virtual {p0}, Lcom/viatech/gallery/SendActivity;->getActionBar()Landroid/app/ActionBar; |
|
|
|
move-result-object v0 |
|
|
|
.line 74 |
|
if-eqz v0, :cond_0 |
|
|
|
.line 75 |
|
invoke-virtual {v0}, Landroid/app/ActionBar;->hide()V |
|
|
|
.line 78 |
|
:cond_0 |
|
const v0, 0x7f03002e |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SendActivity;->setContentView(I)V |
|
|
|
.line 79 |
|
invoke-static {}, Lcom/viatech/Config;->a()Lcom/viatech/Config; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0, p0}, Lcom/viatech/Config;->a(Landroid/app/Activity;)V |
|
|
|
.line 81 |
|
invoke-direct {p0}, Lcom/viatech/gallery/SendActivity;->findViews()V |
|
|
|
.line 82 |
|
invoke-direct {p0}, Lcom/viatech/gallery/SendActivity;->setListener()V |
|
|
|
.line 83 |
|
invoke-direct {p0}, Lcom/viatech/gallery/SendActivity;->initData()V |
|
|
|
.line 84 |
|
return-void |
|
.end method |
|
|
|
.method protected onDestroy()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 293 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendActivity;->mVpaiUploadController:Lcom/viatech/gallery/VpaiUploadController; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/gallery/VpaiUploadController;->onDestroy()V |
|
|
|
.line 294 |
|
invoke-super {p0}, Landroid/app/Activity;->onDestroy()V |
|
|
|
.line 295 |
|
return-void |
|
.end method
|
|
|