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

838 lines
27 KiB

.class Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;
.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 = "CreateLiveEventTask"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/AsyncTask",
"<",
"Ljava/lang/String;",
"Ljava/lang/Void;",
"Ljava/util/List",
"<",
"Lcom/via/vpailib/vpaiinterface/EventData;",
">;>;"
}
.end annotation
# instance fields
.field private insufficientLivePermissions:Z
.field private isNeedLivePermission:Z
.field private isUnknownException:Z
.field private liveBroastId:Ljava/lang/String;
.field final synthetic this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
.field private userRecoverableAuthIOExceptionIntent:Landroid/content/Intent;
# direct methods
.method private constructor <init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V
.locals 1
.prologue
const/4 v0, 0x0
.line 781
iput-object p1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V
.line 784
iput-boolean v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->isUnknownException:Z
.line 786
iput-boolean v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->isNeedLivePermission:Z
.line 787
iput-boolean v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->insufficientLivePermissions:Z
return-void
.end method
.method synthetic constructor <init>(Lcom/viatech/camera/CreateLiveStreamActivity;Lcom/viatech/camera/CreateLiveStreamActivity$1;)V
.locals 0
.prologue
.line 781
invoke-direct {p0, p1}, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V
return-void
.end method
.method static synthetic access$1800(Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;)Ljava/lang/String;
.locals 1
.prologue
.line 781
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->liveBroastId:Ljava/lang/String;
return-object v0
.end method
# virtual methods
.method protected bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.prologue
.line 781
check-cast p1, [Ljava/lang/String;
invoke-virtual {p0, p1}, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->doInBackground([Ljava/lang/String;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method protected varargs doInBackground([Ljava/lang/String;)Ljava/util/List;
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Ljava/lang/String;",
")",
"Ljava/util/List",
"<",
"Lcom/via/vpailib/vpaiinterface/EventData;",
">;"
}
.end annotation
.prologue
const/4 v9, 0x0
const/4 v8, 0x1
.line 800
aget-object v0, p1, v9
.line 801
aget-object v1, p1, v8
.line 802
const/4 v2, 0x2
aget-object v2, p1, v2
.line 803
iget-object v3, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {v3, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1502(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/lang/String;)Ljava/lang/String;
.line 806
:try_start_0
const-string v3, "Vpai_CreateLiveStreamActivity"
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "CreateLiveEventTask streamTitle:"
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
const-string v5, ", streamResolution:"
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
const-string v5, ", streamPrivacy:"
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 807
iget-object v3, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
const-wide/16 v6, 0x1388
add-long/2addr v4, v6
invoke-static {v3, v4, v5}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1602(Lcom/viatech/camera/CreateLiveStreamActivity;J)J
.line 808
iget-object v3, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {v3}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1600(Lcom/viatech/camera/CreateLiveStreamActivity;)J
move-result-wide v4
invoke-static {v0, v1, v2, v4, v5}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->createLiveEvent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;J)Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->liveBroastId:Ljava/lang/String;
.line 809
invoke-static {}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->getUpcomingAndActiveEvents()Ljava/util/List;
:try_end_0
.catch Lcom/google/api/client/googleapis/extensions/android/gms/auth/UserRecoverableAuthIOException; {:try_start_0 .. :try_end_0} :catch_0
.catch Lcom/google/api/client/googleapis/json/GoogleJsonResponseException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_3
move-result-object v0
.line 862
:goto_0
return-object v0
.line 810
:catch_0
move-exception v0
.line 811
invoke-virtual {v0}, Lcom/google/api/client/googleapis/extensions/android/gms/auth/UserRecoverableAuthIOException;->printStackTrace()V
.line 812
invoke-virtual {v0}, Lcom/google/api/client/googleapis/extensions/android/gms/auth/UserRecoverableAuthIOException;->getIntent()Landroid/content/Intent;
move-result-object v1
iput-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->userRecoverableAuthIOExceptionIntent:Landroid/content/Intent;
.line 813
const-string v1, "Vpai_CreateLiveStreamActivity"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "CreateLiveEventTask UserRecoverableAuthIOException: "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v0}, Lcom/google/api/client/googleapis/extensions/android/gms/auth/UserRecoverableAuthIOException;->getMessage()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
const-string v3, ", intent:"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v0}, Lcom/google/api/client/googleapis/extensions/android/gms/auth/UserRecoverableAuthIOException;->getIntent()Landroid/content/Intent;
move-result-object v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)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;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 862
:cond_0
:goto_1
const/4 v0, 0x0
goto :goto_0
.line 814
:catch_1
move-exception v0
.line 815
invoke-virtual {v0}, Lcom/google/api/client/googleapis/json/GoogleJsonResponseException;->printStackTrace()V
.line 816
const-string v1, "Vpai_CreateLiveStreamActivity"
const-string v2, "GoogleJsonResponseException: "
invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 834
iput-boolean v8, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->isUnknownException:Z
.line 835
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/google/api/client/googleapis/json/GoogleJsonResponseException;->getDetails()Lcom/google/api/client/googleapis/json/GoogleJsonError;
move-result-object v1
if-eqz v1, :cond_0
.line 836
invoke-virtual {v0}, Lcom/google/api/client/googleapis/json/GoogleJsonResponseException;->getDetails()Lcom/google/api/client/googleapis/json/GoogleJsonError;
move-result-object v0
.line 837
invoke-virtual {v0}, Lcom/google/api/client/googleapis/json/GoogleJsonError;->getErrors()Ljava/util/List;
move-result-object v1
if-eqz v1, :cond_0
invoke-virtual {v0}, Lcom/google/api/client/googleapis/json/GoogleJsonError;->getErrors()Ljava/util/List;
move-result-object v1
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
if-lez v1, :cond_0
.line 838
invoke-virtual {v0}, Lcom/google/api/client/googleapis/json/GoogleJsonError;->getErrors()Ljava/util/List;
move-result-object v0
invoke-interface {v0, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/api/client/googleapis/json/GoogleJsonError$ErrorInfo;
.line 839
if-eqz v0, :cond_0
.line 840
invoke-virtual {v0}, Lcom/google/api/client/googleapis/json/GoogleJsonError$ErrorInfo;->getReason()Ljava/lang/String;
move-result-object v0
.line 841
if-eqz v0, :cond_0
.line 842
const-string v1, "liveStreamingNotEnabled"
invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v1
if-nez v1, :cond_1
const-string v1, "livePermissionBlocked"
invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_2
.line 843
:cond_1
iput-boolean v8, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->isNeedLivePermission:Z
.line 844
iput-boolean v9, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->isUnknownException:Z
goto :goto_1
.line 845
:cond_2
const-string v1, "insufficientLivePermissions"
invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_0
.line 846
iput-boolean v8, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->insufficientLivePermissions:Z
.line 847
iput-boolean v9, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->isUnknownException:Z
goto :goto_1
.line 853
:catch_2
move-exception v0
.line 854
iput-boolean v8, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->isUnknownException:Z
.line 855
const-string v1, "Vpai_CreateLiveStreamActivity"
const-string v2, "CreateLiveEventTask IOException: "
invoke-static {v1, v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 856
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
goto :goto_1
.line 857
:catch_3
move-exception v0
.line 858
iput-boolean v8, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->isUnknownException:Z
.line 859
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
.line 860
const-string v1, "Vpai_CreateLiveStreamActivity"
const-string v2, "CreateLiveEventTask Exception: "
invoke-static {v1, v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_1
.end method
.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V
.locals 0
.prologue
.line 781
check-cast p1, Ljava/util/List;
invoke-virtual {p0, p1}, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->onPostExecute(Ljava/util/List;)V
return-void
.end method
.method protected onPostExecute(Ljava/util/List;)V
.locals 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Lcom/via/vpailib/vpaiinterface/EventData;",
">;)V"
}
.end annotation
.prologue
const v7, 0x7f0700cf
const/4 v2, 0x0
const/4 v6, 0x1
.line 867
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$900(Lcom/viatech/camera/CreateLiveStreamActivity;)Z
move-result v0
if-eqz v0, :cond_1
.line 961
:cond_0
:goto_0
return-void
.line 871
:cond_1
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->userRecoverableAuthIOExceptionIntent:Landroid/content/Intent;
if-eqz v0, :cond_2
.line 872
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->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 873
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->userRecoverableAuthIOExceptionIntent:Landroid/content/Intent;
sget v2, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->REQUEST_YOUTUBE_AUTHORIZATION:I
invoke-virtual {v0, v1, v2}, Lcom/viatech/camera/CreateLiveStreamActivity;->startActivityForResult(Landroid/content/Intent;I)V
goto :goto_0
.line 877
:cond_2
iget-boolean v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->isNeedLivePermission:Z
if-eqz v0, :cond_3
.line 878
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->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 879
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-virtual {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->isFinishing()Z
move-result v0
if-nez v0, :cond_0
.line 880
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1700(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/AlertDialog;
move-result-object v0
invoke-virtual {v0}, Landroid/app/AlertDialog;->isShowing()Z
move-result v0
if-nez v0, :cond_0
.line 881
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1700(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/AlertDialog;
move-result-object v0
invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V
goto :goto_0
.line 886
:cond_3
iget-boolean v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->insufficientLivePermissions:Z
if-eqz v0, :cond_4
.line 887
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->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 888
sget-object v0, Lcom/viatech/VPaiApplication;->b:Lcom/viatech/widget/VPaiToast;
invoke-virtual {v0, v7, v6}, Lcom/viatech/widget/VPaiToast;->show(II)V
goto :goto_0
.line 892
:cond_4
iget-boolean v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->isUnknownException:Z
if-eqz v0, :cond_5
.line 893
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->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 894
sget-object v0, Lcom/viatech/VPaiApplication;->b:Lcom/viatech/widget/VPaiToast;
const v1, 0x7f0700cb
invoke-virtual {v0, v1, v6}, Lcom/viatech/widget/VPaiToast;->show(II)V
goto :goto_0
.line 899
:cond_5
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$300(Lcom/viatech/camera/CreateLiveStreamActivity;)Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter;
move-result-object v0
invoke-virtual {v0}, Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter;->getCurrent()Lcom/viatech/camera/CreateLiveStreamActivity$TextField;
move-result-object v4
.line 900
if-eqz p1, :cond_8
.line 901
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_6
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_8
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/via/vpailib/vpaiinterface/EventData;
.line 902
iget-object v3, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->liveBroastId:Ljava/lang/String;
if-eqz v3, :cond_6
iget-object v3, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->liveBroastId:Ljava/lang/String;
invoke-virtual {v0}, Lcom/via/vpailib/vpaiinterface/EventData;->getId()Ljava/lang/String;
move-result-object v5
invoke-virtual {v3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_6
.line 903
invoke-virtual {v0}, Lcom/via/vpailib/vpaiinterface/EventData;->getIngestionAddress()Ljava/lang/String;
move-result-object v1
.line 904
const-string v0, "Vpai_CreateLiveStreamActivity"
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "id: "
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
iget-object v5, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->liveBroastId:Ljava/lang/String;
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
const-string v5, ", streamUrl: "
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-static {v0, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 915
:goto_1
if-nez v1, :cond_7
.line 916
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->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 917
sget-object v0, Lcom/viatech/VPaiApplication;->b:Lcom/viatech/widget/VPaiToast;
invoke-virtual {v0, v7, v6}, Lcom/viatech/widget/VPaiToast;->show(II)V
goto/16 :goto_0
.line 918
:cond_7
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$900(Lcom/viatech/camera/CreateLiveStreamActivity;)Z
move-result v0
if-nez v0, :cond_0
.line 919
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->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 v3, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
const v5, 0x7f0700dc
invoke-virtual {v3, v5}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v3}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V
.line 922
sget-object v0, Lcom/viatech/camera/CreateLiveStreamActivity;->sCameraControlView:Lcom/viatech/camera/CameraControlView;
invoke-virtual {v0, v2, v2}, Lcom/viatech/camera/CameraControlView;->stopLiveStream(Ljava/lang/String;Lcom/viatech/device/DeviceMessage$DeviceMessageCallback;)I
.line 925
sget-object v0, Lcom/viatech/camera/CreateLiveStreamActivity;->sCameraControlView:Lcom/viatech/camera/CameraControlView;
new-instance v2, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask$1;
invoke-direct {v2, p0}, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask$1;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;)V
invoke-virtual {v0, v2}, Lcom/viatech/camera/CameraControlView;->setOnLiveStreamStatusCallback(Lcom/viatech/camera/CameraControlView$OnLiveStreamStatusCallback;)V
.line 941
sget-object v0, Lcom/viatech/camera/CreateLiveStreamActivity;->sCameraControlView:Lcom/viatech/camera/CameraControlView;
iget-object v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->liveBroastId:Ljava/lang/String;
iget v3, v4, Lcom/viatech/camera/CreateLiveStreamActivity$TextField;->width:I
iget v4, v4, Lcom/viatech/camera/CreateLiveStreamActivity$TextField;->height:I
iget-object v5, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {v5}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1500(Lcom/viatech/camera/CreateLiveStreamActivity;)Ljava/lang/String;
move-result-object v5
iget-object v6, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-static {v6}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1600(Lcom/viatech/camera/CreateLiveStreamActivity;)J
move-result-wide v6
new-instance v8, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask$2;
invoke-direct {v8, p0}, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask$2;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;)V
invoke-virtual/range {v0 .. v8}, Lcom/viatech/camera/CameraControlView;->startLiveStream(Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;JLcom/viatech/device/DeviceMessage$DeviceMessageCallback;)I
goto/16 :goto_0
:cond_8
move-object v1, v2
goto :goto_1
.end method
.method protected onPreExecute()V
.locals 3
.prologue
.line 791
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1002(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/lang/String;)Ljava/lang/String;
.line 792
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
invoke-virtual {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->isFinishing()Z
move-result v0
if-nez v0, :cond_0
.line 793
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->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$CreateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity;
const v2, 0x7f0700cc
invoke-virtual {v1, v2}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V
.line 794
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->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 796
:cond_0
return-void
.end method