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.
303 lines
8.9 KiB
303 lines
8.9 KiB
.class public Lcom/viatech/gallery/VpaiUploadController; |
|
.super Lcom/viatech/gallery/BaseUpdateController; |
|
.source "VpaiUploadController.java" |
|
|
|
|
|
# static fields |
|
.field private static final DELAY_UPLOADSUCCESS:I = 0x1f4 |
|
|
|
|
|
# instance fields |
|
.field private mActivity:Landroid/app/Activity; |
|
|
|
.field private mFinishView:Landroid/view/View; |
|
|
|
.field private mMaskView:Landroid/view/View; |
|
|
|
.field private mShareMsg:Ljava/lang/String; |
|
|
|
.field private mShareOnly:Z |
|
|
|
.field private mShareType:I |
|
|
|
.field private mUploadView:Landroid/view/View; |
|
|
|
.field private mVideoTransfer:Landroid/view/View; |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 15 |
|
invoke-direct {p0}, Lcom/viatech/gallery/BaseUpdateController;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
.method static synthetic access$000(Lcom/viatech/gallery/VpaiUploadController;)Z |
|
.locals 1 |
|
|
|
.prologue |
|
.line 15 |
|
invoke-direct {p0}, Lcom/viatech/gallery/VpaiUploadController;->support3DTransform()Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method static synthetic access$100(Lcom/viatech/gallery/VpaiUploadController;)Landroid/view/View; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 15 |
|
iget-object v0, p0, Lcom/viatech/gallery/VpaiUploadController;->mVideoTransfer:Landroid/view/View; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$200(Lcom/viatech/gallery/VpaiUploadController;)Landroid/view/View; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 15 |
|
iget-object v0, p0, Lcom/viatech/gallery/VpaiUploadController;->mFinishView:Landroid/view/View; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$300(Lcom/viatech/gallery/VpaiUploadController;)Landroid/view/View; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 15 |
|
iget-object v0, p0, Lcom/viatech/gallery/VpaiUploadController;->mUploadView:Landroid/view/View; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$400(Lcom/viatech/gallery/VpaiUploadController;)Landroid/view/View; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 15 |
|
iget-object v0, p0, Lcom/viatech/gallery/VpaiUploadController;->mMaskView:Landroid/view/View; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method private support3DTransform()Z |
|
.locals 1 |
|
|
|
.prologue |
|
.line 59 |
|
invoke-static {}, Lcom/viatech/Config;->a()Lcom/viatech/Config; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Lcom/viatech/Config;->g()Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method customFail(Ljava/lang/String;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
const v0, 0x7f070121 |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
.line 65 |
|
iget-object v0, p0, Lcom/viatech/gallery/VpaiUploadController;->mActivity:Landroid/app/Activity; |
|
|
|
invoke-virtual {v0}, Landroid/app/Activity;->finish()V |
|
|
|
.line 66 |
|
return-void |
|
.end method |
|
|
|
.method customSuccess(Lcom/viatech/gallery/BaseUploadController$UploadBean;)V |
|
.locals 12 |
|
|
|
.prologue |
|
const/4 v2, 0x0 |
|
|
|
const/4 v11, 0x1 |
|
|
|
.line 36 |
|
iget v0, p0, Lcom/viatech/gallery/VpaiUploadController;->mShareType:I |
|
|
|
if-ne v0, v11, :cond_2 |
|
|
|
.line 37 |
|
iget-object v0, p0, Lcom/viatech/gallery/VpaiUploadController;->mContext:Landroid/content/Context; |
|
|
|
iget v1, p1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mType:I |
|
|
|
if-ne v1, v11, :cond_1 |
|
|
|
move v1, v2 |
|
|
|
:goto_0 |
|
iget-object v3, p1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
invoke-virtual {v3}, Lcom/viatech/gallery/FileInfo;->getSharePageUrl()Ljava/lang/String; |
|
|
|
move-result-object v3 |
|
|
|
iget-object v4, p1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v4, v4, Lcom/viatech/gallery/FileInfo;->thumbnailUrl:Ljava/lang/String; |
|
|
|
iget-object v5, p1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
invoke-virtual {v5}, Lcom/viatech/gallery/FileInfo;->getFullPath()Ljava/lang/String; |
|
|
|
move-result-object v5 |
|
|
|
iget-object v6, p1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v6, v6, Lcom/viatech/gallery/FileInfo;->thumbnailPath:Ljava/lang/String; |
|
|
|
iget-object v7, p1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v7, v7, Lcom/viatech/gallery/FileInfo;->path:Ljava/lang/String; |
|
|
|
iget-object v8, p1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v8, v8, Lcom/viatech/gallery/FileInfo;->url:Ljava/lang/String; |
|
|
|
iget-boolean v9, p0, Lcom/viatech/gallery/VpaiUploadController;->mShareOnly:Z |
|
|
|
iget-object v10, p0, Lcom/viatech/gallery/VpaiUploadController;->mShareMsg:Ljava/lang/String; |
|
|
|
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 41 |
|
:cond_0 |
|
:goto_1 |
|
new-instance v0, Landroid/os/Handler; |
|
|
|
invoke-direct {v0}, Landroid/os/Handler;-><init>()V |
|
|
|
new-instance v1, Lcom/viatech/gallery/VpaiUploadController$1; |
|
|
|
invoke-direct {v1, p0, p1}, Lcom/viatech/gallery/VpaiUploadController$1;-><init>(Lcom/viatech/gallery/VpaiUploadController;Lcom/viatech/gallery/BaseUploadController$UploadBean;)V |
|
|
|
const-wide/16 v2, 0x1f4 |
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z |
|
|
|
.line 55 |
|
return-void |
|
|
|
:cond_1 |
|
move v1, v11 |
|
|
|
.line 37 |
|
goto :goto_0 |
|
|
|
.line 38 |
|
:cond_2 |
|
iget v0, p0, Lcom/viatech/gallery/VpaiUploadController;->mShareType:I |
|
|
|
const/4 v1, 0x2 |
|
|
|
if-ne v0, v1, :cond_0 |
|
|
|
.line 39 |
|
iget-object v0, p0, Lcom/viatech/gallery/VpaiUploadController;->mContext:Landroid/content/Context; |
|
|
|
iget v1, p1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mType:I |
|
|
|
if-ne v1, v11, :cond_3 |
|
|
|
move v1, v2 |
|
|
|
:goto_2 |
|
iget-object v2, p1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
invoke-virtual {v2}, Lcom/viatech/gallery/FileInfo;->getSharePageUrl()Ljava/lang/String; |
|
|
|
move-result-object v3 |
|
|
|
iget-object v2, p1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v4, v2, Lcom/viatech/gallery/FileInfo;->thumbnailUrl:Ljava/lang/String; |
|
|
|
iget-object v2, p1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
invoke-virtual {v2}, Lcom/viatech/gallery/FileInfo;->getFullPath()Ljava/lang/String; |
|
|
|
move-result-object v5 |
|
|
|
iget-object v2, p1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v6, v2, Lcom/viatech/gallery/FileInfo;->thumbnailPath:Ljava/lang/String; |
|
|
|
iget-object v2, p1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v7, v2, Lcom/viatech/gallery/FileInfo;->path:Ljava/lang/String; |
|
|
|
iget-object v2, p1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo; |
|
|
|
iget-object v8, v2, Lcom/viatech/gallery/FileInfo;->url:Ljava/lang/String; |
|
|
|
iget-boolean v9, p0, Lcom/viatech/gallery/VpaiUploadController;->mShareOnly:Z |
|
|
|
iget-object v10, p0, Lcom/viatech/gallery/VpaiUploadController;->mShareMsg:Ljava/lang/String; |
|
|
|
move v2, v11 |
|
|
|
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 |
|
|
|
goto :goto_1 |
|
|
|
:cond_3 |
|
move v1, v11 |
|
|
|
goto :goto_2 |
|
.end method |
|
|
|
.method protected 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 |
|
.locals 0 |
|
|
|
.prologue |
|
.line 23 |
|
invoke-super {p0, p1}, Lcom/viatech/gallery/BaseUpdateController;->onCreate(Landroid/content/Context;)V |
|
|
|
.line 24 |
|
iput-object p1, p0, Lcom/viatech/gallery/VpaiUploadController;->mActivity:Landroid/app/Activity; |
|
|
|
.line 25 |
|
iput-object p2, p0, Lcom/viatech/gallery/VpaiUploadController;->mFinishView:Landroid/view/View; |
|
|
|
.line 26 |
|
iput-object p3, p0, Lcom/viatech/gallery/VpaiUploadController;->mUploadView:Landroid/view/View; |
|
|
|
.line 27 |
|
iput-object p4, p0, Lcom/viatech/gallery/VpaiUploadController;->mMaskView:Landroid/view/View; |
|
|
|
.line 28 |
|
iput-object p8, p0, Lcom/viatech/gallery/VpaiUploadController;->mShareMsg:Ljava/lang/String; |
|
|
|
.line 29 |
|
iput p6, p0, Lcom/viatech/gallery/VpaiUploadController;->mShareType:I |
|
|
|
.line 30 |
|
iput-boolean p7, p0, Lcom/viatech/gallery/VpaiUploadController;->mShareOnly:Z |
|
|
|
.line 31 |
|
iput-object p5, p0, Lcom/viatech/gallery/VpaiUploadController;->mVideoTransfer:Landroid/view/View; |
|
|
|
.line 32 |
|
return-void |
|
.end method
|
|
|