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

351 lines
9.7 KiB

.class Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;
.super Landroid/os/AsyncTask;
.source "CameraControlView.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/viatech/camera/CameraControlView;
.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/CameraControlView;
# direct methods
.method private constructor <init>(Lcom/viatech/camera/CameraControlView;)V
.locals 1
.prologue
.line 4069
iput-object p1, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CameraControlView;
invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V
.line 4070
const/4 v0, 0x0
iput-object v0, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->broadcastId:Ljava/lang/String;
.line 4071
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->isOk:Z
.line 4072
const/4 v0, -0x1
iput v0, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->errCode:I
return-void
.end method
.method synthetic constructor <init>(Lcom/viatech/camera/CameraControlView;Lcom/viatech/camera/CameraControlView$1;)V
.locals 0
.prologue
.line 4069
invoke-direct {p0, p1}, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;-><init>(Lcom/viatech/camera/CameraControlView;)V
return-void
.end method
# virtual methods
.method protected bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.prologue
.line 4069
check-cast p1, [Ljava/lang/String;
invoke-virtual {p0, p1}, Lcom/viatech/camera/CameraControlView$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 4084
const/4 v0, 0x0
aget-object v0, p1, v0
iput-object v0, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->broadcastId:Ljava/lang/String;
.line 4088
:try_start_0
iget-object v0, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->broadcastId:Ljava/lang/String;
invoke-static {v0}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->endEvent(Ljava/lang/String;)V
.line 4089
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/viatech/camera/CameraControlView$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 4105
:cond_0
:goto_0
const/4 v0, 0x0
return-object v0
.line 4090
:catch_0
move-exception v0
.line 4092
if-eqz v0, :cond_0
.line 4093
invoke-virtual {v0}, Lcom/google/api/client/googleapis/json/GoogleJsonResponseException;->getMessage()Ljava/lang/String;
move-result-object v0
.line 4094
const-string v1, "Vpai_CameraControlView"
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 4095
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 4096
const/4 v0, -0x1
iput v0, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->errCode:I
goto :goto_0
.line 4100
:catch_1
move-exception v0
.line 4101
const/4 v1, -0x2
iput v1, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->errCode:I
.line 4102
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 4069
check-cast p1, Ljava/lang/Void;
invoke-virtual {p0, p1}, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->onPostExecute(Ljava/lang/Void;)V
return-void
.end method
.method protected onPostExecute(Ljava/lang/Void;)V
.locals 7
.prologue
.line 4110
iget-object v0, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CameraControlView;
invoke-static {v0}, Lcom/viatech/camera/CameraControlView;->access$6800(Lcom/viatech/camera/CameraControlView;)Landroid/app/ProgressDialog;
move-result-object v0
invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z
move-result v0
if-eqz v0, :cond_0
.line 4111
iget-object v0, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CameraControlView;
invoke-static {v0}, Lcom/viatech/camera/CameraControlView;->access$6800(Lcom/viatech/camera/CameraControlView;)Landroid/app/ProgressDialog;
move-result-object v0
invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V
.line 4113
:cond_0
iget-boolean v0, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->isOk:Z
if-nez v0, :cond_1
iget v0, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->errCode:I
const/4 v1, -0x1
if-ne v0, v1, :cond_2
.line 4114
:cond_1
iget-object v0, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CameraControlView;
invoke-static {v0}, Lcom/viatech/camera/CameraControlView;->access$6900(Lcom/viatech/camera/CameraControlView;)V
.line 4118
:goto_0
return-void
.line 4116
:cond_2
sget-object v0, Lcom/viatech/VPaiApplication;->b:Lcom/viatech/widget/VPaiToast;
iget-object v1, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CameraControlView;
invoke-virtual {v1}, Lcom/viatech/camera/CameraControlView;->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/CameraControlView$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 4076
iget-object v0, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CameraControlView;
invoke-static {v0}, Lcom/viatech/camera/CameraControlView;->access$6800(Lcom/viatech/camera/CameraControlView;)Landroid/app/ProgressDialog;
move-result-object v0
iget-object v1, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CameraControlView;
invoke-virtual {v1}, Lcom/viatech/camera/CameraControlView;->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 4077
iget-object v0, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CameraControlView;
invoke-static {v0}, Lcom/viatech/camera/CameraControlView;->access$6800(Lcom/viatech/camera/CameraControlView;)Landroid/app/ProgressDialog;
move-result-object v0
invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z
move-result v0
if-nez v0, :cond_0
.line 4078
iget-object v0, p0, Lcom/viatech/camera/CameraControlView$StopLiveStreamEventAsyncTask;->this$0:Lcom/viatech/camera/CameraControlView;
invoke-static {v0}, Lcom/viatech/camera/CameraControlView;->access$6800(Lcom/viatech/camera/CameraControlView;)Landroid/app/ProgressDialog;
move-result-object v0
invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V
.line 4080
:cond_0
return-void
.end method