今奥全景相机
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.

360 lines
10 KiB

.class Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;
.super Landroid/os/AsyncTask;
.source "CreateLiveStreamActivity.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/viatech/camera/CreateLiveStreamActivity;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2
name = "StopLiveStreamEventAsyncTask"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/AsyncTask",
"<",
"Ljava/lang/String;",
"Ljava/lang/Void;",
"Ljava/lang/Void;",
">;"
}
.end annotation
# instance fields
.field broadcastId:Ljava/lang/String;
.field errCode:I
.field isOk:Z
.field final synthetic this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
# direct methods
.method private constructor <init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V
.locals 1
.prologue
.line 964
iput-object p1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V
.line 965
const/4 v0, 0x0
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->broadcastId:Ljava/lang/String;
.line 966
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->isOk:Z
.line 967
const/4 v0, -0x1
iput v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->errCode:I
return-void
.end method
.method synthetic constructor <init>(Lcom/viatech/camera/CreateLiveStreamActivity;Lcom/viatech/camera/CreateLiveStreamActivity$1;)V
.locals 0
.prologue
.line 964
invoke-direct {p0, p1}, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V
return-void
.end method
# virtual methods
.method protected bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.prologue
.line 964
check-cast p1, [Ljava/lang/String;
invoke-virtual {p0, p1}, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->doInBackground([Ljava/lang/String;)Ljava/lang/Void;
move-result-object v0
return-object v0
.end method
.method protected varargs doInBackground([Ljava/lang/String;)Ljava/lang/Void;
.locals 4
.prologue
.line 981
const/4 v0, 0x0
aget-object v0, p1, v0
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->broadcastId:Ljava/lang/String;
.line 985
:try_start_0
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->broadcastId:Ljava/lang/String;
invoke-static {v0}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->endEvent(Ljava/lang/String;)V
.line 986
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->isOk:Z
:try_end_0
.catch Lcom/google/api/client/googleapis/json/GoogleJsonResponseException; {:try_start_0 .. :try_end_0} :catch_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
.line 1002
:cond_0
:goto_0
const/4 v0, 0x0
return-object v0
.line 987
:catch_0
move-exception v0
.line 989
if-eqz v0, :cond_0
.line 990
invoke-virtual {v0}, Lcom/google/api/client/googleapis/json/GoogleJsonResponseException;->getMessage()Ljava/lang/String;
move-result-object v0
.line 991
const-string v1, "Vpai_CreateLiveStreamActivity"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "GoogleJsonResponseException:"
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 v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 992
if-eqz v0, :cond_0
const-string v1, "redundantTransition"
invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_0
.line 993
const/4 v0, -0x1
iput v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->errCode:I
goto :goto_0
.line 997
:catch_1
move-exception v0
.line 998
const/4 v1, -0x2
iput v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->errCode:I
.line 999
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_0
.end method
.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V
.locals 0
.prologue
.line 964
check-cast p1, Ljava/lang/Void;
invoke-virtual {p0, p1}, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->onPostExecute(Ljava/lang/Void;)V
return-void
.end method
.method protected onPostExecute(Ljava/lang/Void;)V
.locals 7
.prologue
.line 1007
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1400(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/ProgressDialog;
move-result-object v0
invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z
move-result v0
if-eqz v0, :cond_0
.line 1008
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1400(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/ProgressDialog;
move-result-object v0
invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V
.line 1010
:cond_0
iget-boolean v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->isOk:Z
if-nez v0, :cond_1
iget v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->errCode:I
const/4 v1, -0x1
if-ne v0, v1, :cond_2
.line 1011
:cond_1
const v0, 0x7f0700e5
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V
.line 1015
:goto_0
return-void
.line 1013
:cond_2
sget-object v0, Lcom/viatech/VPaiApplication;->b:Lcom/viatech/widget/VPaiToast;
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-virtual {v1}, Lcom/viatech/camera/CreateLiveStreamActivity;->getResources()Landroid/content/res/Resources;
move-result-object v1
const v2, 0x7f0700e6
const/4 v3, 0x1
new-array v3, v3, [Ljava/lang/Object;
const/4 v4, 0x0
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
const-string v6, ""
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v5
iget v6, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->errCode:I
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v5
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
aput-object v5, v3, v4
invoke-virtual {v1, v2, v3}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/viatech/widget/VPaiToast;->show(Ljava/lang/String;)V
goto :goto_0
.end method
.method protected onPreExecute()V
.locals 3
.prologue
.line 971
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-virtual {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->isFinishing()Z
move-result v0
if-nez v0, :cond_0
.line 972
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1400(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/ProgressDialog;
move-result-object v0
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-virtual {v1}, Lcom/viatech/camera/CreateLiveStreamActivity;->getResources()Landroid/content/res/Resources;
move-result-object v1
const v2, 0x7f0700e8
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V
.line 973
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1400(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/ProgressDialog;
move-result-object v0
invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z
move-result v0
if-nez v0, :cond_0
.line 974
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1400(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/ProgressDialog;
move-result-object v0
invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V
.line 977
:cond_0
return-void
.end method