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.
2540 lines
72 KiB
2540 lines
72 KiB
.class public Lcom/viatech/camera/CreateLiveStreamActivity; |
|
.super Landroid/app/Activity; |
|
.source "CreateLiveStreamActivity.java" |
|
|
|
# interfaces |
|
.implements Landroid/view/View$OnClickListener; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/MemberClasses; |
|
value = { |
|
Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;, |
|
Lcom/viatech/camera/CreateLiveStreamActivity$StartLiveEventTask;, |
|
Lcom/viatech/camera/CreateLiveStreamActivity$StopLiveStreamEventAsyncTask;, |
|
Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;, |
|
Lcom/viatech/camera/CreateLiveStreamActivity$TextField;, |
|
Lcom/viatech/camera/CreateLiveStreamActivity$TextViewHolder;, |
|
Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
} |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field private static final FB_LIVE_PERMISSION:Ljava/lang/String; = "publish_video" |
|
|
|
.field public static final KEY_BROADCAST_ID:Ljava/lang/String; = "broadcast_id" |
|
|
|
.field public static final KEY_BROADCAST_LIVING:Ljava/lang/String; = "broadcast_living" |
|
|
|
.field public static final KEY_BROADCAST_PUBLISH_TIME:Ljava/lang/String; = "broadcast_publish_time" |
|
|
|
.field public static final KEY_BROADCAST_TITLE:Ljava/lang/String; = "broadcast_title" |
|
|
|
.field public static final KEY_BROADCAST_TYPE:Ljava/lang/String; = "broadcast_publish_type" |
|
|
|
.field public static final KEY_BROADCAST_WATCH_URL:Ljava/lang/String; = "broadcast_watch_url" |
|
|
|
.field public static final LIVE_PLATFORM_FACEBOOK:I = 0x1 |
|
|
|
.field public static final LIVE_PLATFORM_OTHERS:I = 0x3 |
|
|
|
.field public static final LIVE_PLATFORM_RTMP:I = 0x2 |
|
|
|
.field public static final LIVE_PLATFORM_YOUTUBE:I = 0x0 |
|
|
|
.field private static final MSG_CMD_STOP_LIVE_TIMEOUT:I = 0x64 |
|
|
|
.field private static final MSG_LOGIN_STATUS_DELAY:I = 0x65 |
|
|
|
.field private static final MSG_TIMEOUT:I = 0x7530 |
|
|
|
.field private static final REQUEST_CODE_YT_LIVE_PERMISSION:I = 0x64 |
|
|
|
.field private static final TAG:Ljava/lang/String; = "Vpai_CreateLiveStreamActivity" |
|
|
|
.field public static sCameraControlView:Lcom/viatech/camera/CameraControlView; |
|
|
|
.field public static sVPaiDevice:Lcom/viatech/device/VPaiDevice; |
|
|
|
|
|
# instance fields |
|
.field private mAutoLogin:Z |
|
|
|
.field private mCanceled:Z |
|
|
|
.field private mEnableLiveFeaturesDialog:Landroid/app/AlertDialog; |
|
|
|
.field private mFBCallbackManager:Lcom/facebook/CallbackManager; |
|
|
|
.field private mHandler:Landroid/os/Handler; |
|
|
|
.field private mLivePlatformType:I |
|
|
|
.field private mLiveStreamAccountView:Landroid/view/View; |
|
|
|
.field private mLiveStreamBroadcastId:Ljava/lang/String; |
|
|
|
.field private mLiveStreamBroadcastTitle:Ljava/lang/String; |
|
|
|
.field private mLiveStreamPlatformLogo:Landroid/widget/ImageView; |
|
|
|
.field private mLiveStreamPrivacyDialog:Landroid/app/Dialog; |
|
|
|
.field private mLiveStreamPrivacyTxt:Landroid/widget/TextView; |
|
|
|
.field private mLiveStreamPrivacytView:Landroid/view/View; |
|
|
|
.field private mLiveStreamProgressDialog:Landroid/app/ProgressDialog; |
|
|
|
.field private mLiveStreamResolutionDialog:Landroid/app/Dialog; |
|
|
|
.field private mLiveStreamResolutionTxt:Landroid/widget/TextView; |
|
|
|
.field private mLiveStreamResolutionView:Landroid/view/View; |
|
|
|
.field private mLiveStreamScheduledTimeMs:J |
|
|
|
.field private mLiveStreamStartBtn:Landroid/widget/Button; |
|
|
|
.field private mLiveStreamTitleEdit:Landroid/widget/EditText; |
|
|
|
.field private mLiveStreamUserEmailTxt:Landroid/widget/TextView; |
|
|
|
.field private mLiveStreamUserNameTxt:Landroid/widget/TextView; |
|
|
|
.field private mPrivacyListAdapter:Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
|
|
.field private mResotionListAdapter:Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
|
|
.field private mStatusProgressDialog:Landroid/app/ProgressDialog; |
|
|
|
.field private mVPaiDevice:Lcom/viatech/device/VPaiDevice; |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>()V |
|
.locals 3 |
|
|
|
.prologue |
|
const/4 v0, 0x0 |
|
|
|
const/4 v2, 0x0 |
|
|
|
.line 96 |
|
invoke-direct {p0}, Landroid/app/Activity;-><init>()V |
|
|
|
.line 125 |
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamBroadcastId:Ljava/lang/String; |
|
|
|
.line 126 |
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamBroadcastTitle:Ljava/lang/String; |
|
|
|
.line 127 |
|
const-wide/16 v0, 0x0 |
|
|
|
iput-wide v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamScheduledTimeMs:J |
|
|
|
.line 128 |
|
iput-boolean v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mCanceled:Z |
|
|
|
.line 131 |
|
iput-boolean v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mAutoLogin:Z |
|
|
|
.line 148 |
|
iput v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLivePlatformType:I |
|
|
|
.line 156 |
|
new-instance v0, Lcom/viatech/camera/CreateLiveStreamActivity$1; |
|
|
|
invoke-direct {v0, p0}, Lcom/viatech/camera/CreateLiveStreamActivity$1;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mHandler:Landroid/os/Handler; |
|
|
|
return-void |
|
.end method |
|
|
|
.method static synthetic access$000(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/ProgressDialog; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mStatusProgressDialog:Landroid/app/ProgressDialog; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$100(Lcom/viatech/camera/CreateLiveStreamActivity;)I |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iget v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLivePlatformType:I |
|
|
|
return v0 |
|
.end method |
|
|
|
.method static synthetic access$1000(Lcom/viatech/camera/CreateLiveStreamActivity;)Ljava/lang/String; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamBroadcastId:Ljava/lang/String; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$1002(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/lang/String;)Ljava/lang/String; |
|
.locals 0 |
|
|
|
.prologue |
|
.line 96 |
|
iput-object p1, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamBroadcastId:Ljava/lang/String; |
|
|
|
return-object p1 |
|
.end method |
|
|
|
.method static synthetic access$1202(Lcom/viatech/camera/CreateLiveStreamActivity;Z)Z |
|
.locals 0 |
|
|
|
.prologue |
|
.line 96 |
|
iput-boolean p1, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mAutoLogin:Z |
|
|
|
return p1 |
|
.end method |
|
|
|
.method static synthetic access$1400(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/ProgressDialog; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamProgressDialog:Landroid/app/ProgressDialog; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$1500(Lcom/viatech/camera/CreateLiveStreamActivity;)Ljava/lang/String; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamBroadcastTitle:Ljava/lang/String; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$1502(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/lang/String;)Ljava/lang/String; |
|
.locals 0 |
|
|
|
.prologue |
|
.line 96 |
|
iput-object p1, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamBroadcastTitle:Ljava/lang/String; |
|
|
|
return-object p1 |
|
.end method |
|
|
|
.method static synthetic access$1600(Lcom/viatech/camera/CreateLiveStreamActivity;)J |
|
.locals 2 |
|
|
|
.prologue |
|
.line 96 |
|
iget-wide v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamScheduledTimeMs:J |
|
|
|
return-wide v0 |
|
.end method |
|
|
|
.method static synthetic access$1602(Lcom/viatech/camera/CreateLiveStreamActivity;J)J |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iput-wide p1, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamScheduledTimeMs:J |
|
|
|
return-wide p1 |
|
.end method |
|
|
|
.method static synthetic access$1700(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/AlertDialog; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mEnableLiveFeaturesDialog:Landroid/app/AlertDialog; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$200(Lcom/viatech/camera/CreateLiveStreamActivity;)Z |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->refreshFacebookLiveStatus()Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method static synthetic access$2000(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/os/Handler; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mHandler:Landroid/os/Handler; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$2200(Lcom/viatech/camera/CreateLiveStreamActivity;)Z |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->isFBLogined()Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method static synthetic access$2300(Lcom/viatech/camera/CreateLiveStreamActivity;)Z |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->checkFBLivePermission()Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method static synthetic access$2400(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/lang/String;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 96 |
|
invoke-direct {p0, p1}, Lcom/viatech/camera/CreateLiveStreamActivity;->showMsg2Ui(Ljava/lang/String;)V |
|
|
|
return-void |
|
.end method |
|
|
|
.method static synthetic access$2500(Lcom/viatech/camera/CreateLiveStreamActivity;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 96 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->closeFBLiveTip()V |
|
|
|
return-void |
|
.end method |
|
|
|
.method static synthetic access$2600(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/lang/String;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 96 |
|
invoke-direct {p0, p1}, Lcom/viatech/camera/CreateLiveStreamActivity;->showFBLiveTip2Ui(Ljava/lang/String;)V |
|
|
|
return-void |
|
.end method |
|
|
|
.method static synthetic access$300(Lcom/viatech/camera/CreateLiveStreamActivity;)Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mResotionListAdapter:Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$400(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/widget/TextView; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamResolutionTxt:Landroid/widget/TextView; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$500(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/Dialog; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamResolutionDialog:Landroid/app/Dialog; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$600(Lcom/viatech/camera/CreateLiveStreamActivity;)Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mPrivacyListAdapter:Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$700(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/widget/TextView; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamPrivacyTxt:Landroid/widget/TextView; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$800(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/Dialog; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamPrivacyDialog:Landroid/app/Dialog; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$900(Lcom/viatech/camera/CreateLiveStreamActivity;)Z |
|
.locals 1 |
|
|
|
.prologue |
|
.line 96 |
|
iget-boolean v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mCanceled:Z |
|
|
|
return v0 |
|
.end method |
|
|
|
.method static synthetic access$902(Lcom/viatech/camera/CreateLiveStreamActivity;Z)Z |
|
.locals 0 |
|
|
|
.prologue |
|
.line 96 |
|
iput-boolean p1, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mCanceled:Z |
|
|
|
return p1 |
|
.end method |
|
|
|
.method private checkFBLivePermission()Z |
|
.locals 5 |
|
|
|
.prologue |
|
const/4 v1, 0x0 |
|
|
|
.line 1222 |
|
invoke-static {}, Lcom/facebook/AccessToken;->getCurrentAccessToken()Lcom/facebook/AccessToken; |
|
|
|
move-result-object v0 |
|
|
|
.line 1223 |
|
if-eqz v0, :cond_0 |
|
|
|
invoke-virtual {v0}, Lcom/facebook/AccessToken;->isExpired()Z |
|
|
|
move-result v2 |
|
|
|
if-eqz v2, :cond_2 |
|
|
|
.line 1224 |
|
:cond_0 |
|
const-string v2, "Vpai_CreateLiveStreamActivity" |
|
|
|
new-instance v3, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v4, "token " |
|
|
|
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/Object;)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 1241 |
|
:cond_1 |
|
:goto_0 |
|
return v1 |
|
|
|
.line 1228 |
|
:cond_2 |
|
invoke-virtual {v0}, Lcom/facebook/AccessToken;->getPermissions()Ljava/util/Set; |
|
|
|
move-result-object v0 |
|
|
|
.line 1229 |
|
const-string v2, "Vpai_CreateLiveStreamActivity" |
|
|
|
new-instance v3, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v4, "permissions: " |
|
|
|
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/Object;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v3 |
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v3 |
|
|
|
invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 1230 |
|
if-eqz v0, :cond_1 |
|
|
|
.line 1235 |
|
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v2 |
|
|
|
:cond_3 |
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_4 |
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/lang/String; |
|
|
|
.line 1236 |
|
const-string v3, "publish_video" |
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_3 |
|
|
|
.line 1237 |
|
const/4 v0, 0x1 |
|
|
|
:goto_1 |
|
move v1, v0 |
|
|
|
.line 1241 |
|
goto :goto_0 |
|
|
|
:cond_4 |
|
move v0, v1 |
|
|
|
goto :goto_1 |
|
.end method |
|
|
|
.method private closeFBLiveTip()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 1269 |
|
new-instance v0, Lcom/viatech/camera/CreateLiveStreamActivity$11; |
|
|
|
invoke-direct {v0, p0}, Lcom/viatech/camera/CreateLiveStreamActivity$11;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->runOnUiThread(Ljava/lang/Runnable;)V |
|
|
|
.line 1279 |
|
return-void |
|
.end method |
|
|
|
.method private createFBLiveAsync(Ljava/lang/String;)V |
|
.locals 8 |
|
|
|
.prologue |
|
const/4 v2, 0x1 |
|
|
|
.line 1292 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mResotionListAdapter:Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter;->getCurrent()Lcom/viatech/camera/CreateLiveStreamActivity$TextField; |
|
|
|
move-result-object v0 |
|
|
|
.line 1293 |
|
iget v6, v0, Lcom/viatech/camera/CreateLiveStreamActivity$TextField;->width:I |
|
|
|
.line 1294 |
|
iget v7, v0, Lcom/viatech/camera/CreateLiveStreamActivity$TextField;->height:I |
|
|
|
.line 1296 |
|
new-instance v3, Landroid/os/Bundle; |
|
|
|
invoke-direct {v3}, Landroid/os/Bundle;-><init>()V |
|
|
|
.line 1297 |
|
const-string v0, "title" |
|
|
|
invoke-virtual {v3, v0, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V |
|
|
|
.line 1298 |
|
const-string v0, "description" |
|
|
|
invoke-virtual {v3, v0, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V |
|
|
|
.line 1299 |
|
const-string v0, "privacy" |
|
|
|
const-string v1, "{\"value\":\"EVERYONE\"}" |
|
|
|
invoke-virtual {v3, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V |
|
|
|
.line 1300 |
|
const-string v0, "save_vod" |
|
|
|
invoke-virtual {v3, v0, v2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V |
|
|
|
.line 1301 |
|
const-string v0, "status" |
|
|
|
const-string v1, "LIVE_NOW" |
|
|
|
invoke-virtual {v3, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V |
|
|
|
.line 1302 |
|
const-string v0, "stream_type" |
|
|
|
const-string v1, "REGULAR" |
|
|
|
invoke-virtual {v3, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V |
|
|
|
.line 1303 |
|
const-string v0, "is_spherical" |
|
|
|
invoke-virtual {v3, v0, v2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V |
|
|
|
.line 1305 |
|
invoke-static {}, Lcom/facebook/AccessToken;->getCurrentAccessToken()Lcom/facebook/AccessToken; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Lcom/facebook/AccessToken;->getUserId()Ljava/lang/String; |
|
|
|
move-result-object v2 |
|
|
|
.line 1307 |
|
const v0, 0x7f0700cc |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
invoke-direct {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->showFBLiveTip2Ui(Ljava/lang/String;)V |
|
|
|
.line 1309 |
|
const/4 v0, 0x0 |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamBroadcastId:Ljava/lang/String; |
|
|
|
.line 1311 |
|
new-instance v0, Lcom/facebook/GraphRequest; |
|
|
|
invoke-static {}, Lcom/facebook/AccessToken;->getCurrentAccessToken()Lcom/facebook/AccessToken; |
|
|
|
move-result-object v1 |
|
|
|
new-instance v4, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v5, "/" |
|
|
|
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 v2 |
|
|
|
const-string v4, "/live_videos" |
|
|
|
invoke-virtual {v2, v4}, 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 |
|
|
|
sget-object v4, Lcom/facebook/HttpMethod;->POST:Lcom/facebook/HttpMethod; |
|
|
|
new-instance v5, Lcom/viatech/camera/CreateLiveStreamActivity$13; |
|
|
|
invoke-direct {v5, p0, p1, v6, v7}, Lcom/viatech/camera/CreateLiveStreamActivity$13;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/lang/String;II)V |
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/facebook/GraphRequest;-><init>(Lcom/facebook/AccessToken;Ljava/lang/String;Landroid/os/Bundle;Lcom/facebook/HttpMethod;Lcom/facebook/GraphRequest$Callback;)V |
|
|
|
.line 1430 |
|
invoke-virtual {v0}, Lcom/facebook/GraphRequest;->executeAsync()Lcom/facebook/GraphRequestAsyncTask; |
|
|
|
.line 1431 |
|
return-void |
|
.end method |
|
|
|
.method private doFacebookLiveLogin()V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 536 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mHandler:Landroid/os/Handler; |
|
|
|
invoke-static {p0, v0}, Lcom/viatech/cloud/LiveLoginManager;->getManager(Landroid/content/Context;Landroid/os/Handler;)Lcom/viatech/cloud/LiveLoginManager; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/viatech/camera/CreateLiveStreamActivity$8; |
|
|
|
invoke-direct {v1, p0}, Lcom/viatech/camera/CreateLiveStreamActivity$8;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V |
|
|
|
invoke-virtual {v0, v1}, Lcom/viatech/cloud/LiveLoginManager;->doFacebookLiveLogin(Lcom/viatech/cloud/LiveLoginManager$LiveLoginCallback;)V |
|
|
|
.line 558 |
|
return-void |
|
.end method |
|
|
|
.method private doLoginYouTube()V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 528 |
|
iget-boolean v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mAutoLogin:Z |
|
|
|
if-nez v0, :cond_0 |
|
|
|
.line 529 |
|
const/4 v0, 0x1 |
|
|
|
iput-boolean v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mAutoLogin:Z |
|
|
|
.line 530 |
|
invoke-static {p0}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->showLoginGoogleUi(Landroid/app/Activity;)V |
|
|
|
.line 531 |
|
invoke-static {}, Lorg/greenrobot/eventbus/c;->a()Lorg/greenrobot/eventbus/c; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/viatech/community/a/b; |
|
|
|
invoke-direct {v1}, Lcom/viatech/community/a/b;-><init>()V |
|
|
|
invoke-virtual {v0, v1}, Lorg/greenrobot/eventbus/c;->c(Ljava/lang/Object;)V |
|
|
|
.line 533 |
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method private doShowPrivacyDialog()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 561 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamPrivacyDialog:Landroid/app/Dialog; |
|
|
|
invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_0 |
|
|
|
.line 562 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamPrivacyDialog:Landroid/app/Dialog; |
|
|
|
invoke-virtual {v0}, Landroid/app/Dialog;->show()V |
|
|
|
.line 563 |
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method private doShowResolutionDialog()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 566 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamResolutionDialog:Landroid/app/Dialog; |
|
|
|
invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_0 |
|
|
|
.line 567 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamResolutionDialog:Landroid/app/Dialog; |
|
|
|
invoke-virtual {v0}, Landroid/app/Dialog;->show()V |
|
|
|
.line 568 |
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method private doStartLiveStream()V |
|
.locals 6 |
|
|
|
.prologue |
|
const v4, 0x7f0700c8 |
|
|
|
.line 571 |
|
iget v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLivePlatformType:I |
|
|
|
packed-switch v0, :pswitch_data_0 |
|
|
|
.line 661 |
|
:goto_0 |
|
return-void |
|
|
|
.line 574 |
|
:pswitch_0 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->hasYouTubeLivePermissions()Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_0 |
|
|
|
.line 575 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->requestYouTubeLivePermission()V |
|
|
|
goto :goto_0 |
|
|
|
.line 579 |
|
:cond_0 |
|
invoke-static {}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->checkLogin()Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_1 |
|
|
|
.line 580 |
|
invoke-static {p0}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->showLoginGoogleUi(Landroid/app/Activity;)V |
|
|
|
.line 581 |
|
invoke-static {}, Lorg/greenrobot/eventbus/c;->a()Lorg/greenrobot/eventbus/c; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/viatech/community/a/b; |
|
|
|
invoke-direct {v1}, Lcom/viatech/community/a/b;-><init>()V |
|
|
|
invoke-virtual {v0, v1}, Lorg/greenrobot/eventbus/c;->c(Ljava/lang/Object;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 585 |
|
:cond_1 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamTitleEdit:Landroid/widget/EditText; |
|
|
|
invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
.line 586 |
|
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mResotionListAdapter:Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
|
|
invoke-virtual {v1}, Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter;->getCurrent()Lcom/viatech/camera/CreateLiveStreamActivity$TextField; |
|
|
|
move-result-object v1 |
|
|
|
iget-object v1, v1, Lcom/viatech/camera/CreateLiveStreamActivity$TextField;->value:Ljava/lang/String; |
|
|
|
.line 587 |
|
iget-object v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mPrivacyListAdapter:Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
|
|
invoke-virtual {v2}, Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter;->getCurrent()Lcom/viatech/camera/CreateLiveStreamActivity$TextField; |
|
|
|
move-result-object v2 |
|
|
|
iget-object v2, v2, Lcom/viatech/camera/CreateLiveStreamActivity$TextField;->value:Ljava/lang/String; |
|
|
|
.line 588 |
|
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String; |
|
|
|
move-result-object v3 |
|
|
|
invoke-virtual {v3}, Ljava/lang/String;->isEmpty()Z |
|
|
|
move-result v3 |
|
|
|
if-eqz v3, :cond_2 |
|
|
|
.line 589 |
|
invoke-static {v4}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
goto :goto_0 |
|
|
|
.line 593 |
|
:cond_2 |
|
new-instance v3, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask; |
|
|
|
const/4 v4, 0x0 |
|
|
|
invoke-direct {v3, p0, v4}, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;Lcom/viatech/camera/CreateLiveStreamActivity$1;)V |
|
|
|
const/4 v4, 0x3 |
|
|
|
new-array v4, v4, [Ljava/lang/String; |
|
|
|
const/4 v5, 0x0 |
|
|
|
aput-object v0, v4, v5 |
|
|
|
const/4 v0, 0x1 |
|
|
|
aput-object v1, v4, v0 |
|
|
|
const/4 v0, 0x2 |
|
|
|
aput-object v2, v4, v0 |
|
|
|
invoke-virtual {v3, v4}, Lcom/viatech/camera/CreateLiveStreamActivity$CreateLiveEventTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask; |
|
|
|
goto :goto_0 |
|
|
|
.line 598 |
|
:pswitch_1 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamTitleEdit:Landroid/widget/EditText; |
|
|
|
invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
.line 599 |
|
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->isEmpty()Z |
|
|
|
move-result v1 |
|
|
|
if-eqz v1, :cond_3 |
|
|
|
.line 600 |
|
invoke-virtual {p0, v4}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
invoke-direct {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->showMsg2Ui(Ljava/lang/String;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 605 |
|
:cond_3 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->isFBLogined()Z |
|
|
|
move-result v1 |
|
|
|
if-nez v1, :cond_4 |
|
|
|
.line 606 |
|
const-string v0, "Vpai_CreateLiveStreamActivity" |
|
|
|
const-string v1, "request login permision on Facebook" |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 607 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->requestFBLogin()V |
|
|
|
goto/16 :goto_0 |
|
|
|
.line 612 |
|
:cond_4 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->checkFBLivePermission()Z |
|
|
|
move-result v1 |
|
|
|
if-nez v1, :cond_5 |
|
|
|
.line 613 |
|
const-string v0, "Vpai_CreateLiveStreamActivity" |
|
|
|
const-string v1, "request live publish_video permission on Facebook" |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 614 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->requestFBLivePermission()V |
|
|
|
goto/16 :goto_0 |
|
|
|
.line 619 |
|
:cond_5 |
|
invoke-direct {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->createFBLiveAsync(Ljava/lang/String;)V |
|
|
|
goto/16 :goto_0 |
|
|
|
.line 571 |
|
:pswitch_data_0 |
|
.packed-switch 0x0 |
|
:pswitch_0 |
|
:pswitch_1 |
|
.end packed-switch |
|
.end method |
|
|
|
.method private hasYouTubeLivePermissions()Z |
|
.locals 1 |
|
|
|
.prologue |
|
.line 453 |
|
const-string v0, "android.permission.GET_ACCOUNTS" |
|
|
|
invoke-static {p0, v0}, Landroid/support/v4/content/ContextCompat;->checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_0 |
|
|
|
const/4 v0, 0x1 |
|
|
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method private initData()V |
|
.locals 4 |
|
|
|
.prologue |
|
.line 465 |
|
iget v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLivePlatformType:I |
|
|
|
packed-switch v0, :pswitch_data_0 |
|
|
|
.line 497 |
|
:cond_0 |
|
:goto_0 |
|
return-void |
|
|
|
.line 467 |
|
:pswitch_0 |
|
invoke-static {}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->checkLogin()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 468 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserEmailTxt:Landroid/widget/TextView; |
|
|
|
invoke-static {}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->getLoginAccountName()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 469 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserNameTxt:Landroid/widget/TextView; |
|
|
|
invoke-static {}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->getLoginAccountNickname()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 470 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserEmailTxt:Landroid/widget/TextView; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V |
|
|
|
.line 479 |
|
:goto_1 |
|
invoke-static {}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->checkLogin()Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_0 |
|
|
|
.line 480 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mHandler:Landroid/os/Handler; |
|
|
|
new-instance v1, Lcom/viatech/camera/CreateLiveStreamActivity$7; |
|
|
|
invoke-direct {v1, p0}, Lcom/viatech/camera/CreateLiveStreamActivity$7;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V |
|
|
|
const-wide/16 v2, 0x1f4 |
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z |
|
|
|
goto :goto_0 |
|
|
|
.line 472 |
|
:cond_1 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserNameTxt:Landroid/widget/TextView; |
|
|
|
const v1, 0x7f0700cd |
|
|
|
invoke-virtual {p0, v1}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 473 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserEmailTxt:Landroid/widget/TextView; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 474 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserEmailTxt:Landroid/widget/TextView; |
|
|
|
const/16 v1, 0x8 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V |
|
|
|
goto :goto_1 |
|
|
|
.line 491 |
|
:pswitch_1 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->initFacebookLive()V |
|
|
|
goto :goto_0 |
|
|
|
.line 465 |
|
nop |
|
|
|
:pswitch_data_0 |
|
.packed-switch 0x0 |
|
:pswitch_0 |
|
:pswitch_1 |
|
.end packed-switch |
|
.end method |
|
|
|
.method private initFacebookLive()V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 1170 |
|
invoke-static {}, Lcom/facebook/CallbackManager$Factory;->create()Lcom/facebook/CallbackManager; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mFBCallbackManager:Lcom/facebook/CallbackManager; |
|
|
|
.line 1171 |
|
invoke-static {}, Lcom/facebook/login/LoginManager;->getInstance()Lcom/facebook/login/LoginManager; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mFBCallbackManager:Lcom/facebook/CallbackManager; |
|
|
|
new-instance v2, Lcom/viatech/camera/CreateLiveStreamActivity$9; |
|
|
|
invoke-direct {v2, p0}, Lcom/viatech/camera/CreateLiveStreamActivity$9;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V |
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/facebook/login/LoginManager;->registerCallback(Lcom/facebook/CallbackManager;Lcom/facebook/FacebookCallback;)V |
|
|
|
.line 1198 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->refreshFacebookLiveStatus()Z |
|
|
|
move-result v0 |
|
|
|
.line 1199 |
|
if-nez v0, :cond_0 |
|
|
|
.line 1200 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->doFacebookLiveLogin()V |
|
|
|
.line 1202 |
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method private initView()V |
|
.locals 13 |
|
|
|
.prologue |
|
const v12, 0x7f0c00c8 |
|
|
|
const v11, 0x7f07005c |
|
|
|
const/4 v10, 0x1 |
|
|
|
const/4 v9, 0x0 |
|
|
|
const/4 v8, 0x0 |
|
|
|
.line 315 |
|
const v0, 0x7f0c00c4 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserNameTxt:Landroid/widget/TextView; |
|
|
|
.line 316 |
|
const v0, 0x7f0c00c5 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserEmailTxt:Landroid/widget/TextView; |
|
|
|
.line 317 |
|
const v0, 0x7f0c00ba |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/EditText; |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamTitleEdit:Landroid/widget/EditText; |
|
|
|
.line 318 |
|
const v0, 0x7f0c00bd |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamResolutionTxt:Landroid/widget/TextView; |
|
|
|
.line 319 |
|
invoke-virtual {p0, v12}, Lcom/viatech/camera/CreateLiveStreamActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamPrivacyTxt:Landroid/widget/TextView; |
|
|
|
.line 320 |
|
const v0, 0x7f0c00c0 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/Button; |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamStartBtn:Landroid/widget/Button; |
|
|
|
.line 321 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamStartBtn:Landroid/widget/Button; |
|
|
|
invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 322 |
|
const v0, 0x7f0c00c2 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamAccountView:Landroid/view/View; |
|
|
|
.line 323 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamAccountView:Landroid/view/View; |
|
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 324 |
|
const v0, 0x7f0c00bb |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamResolutionView:Landroid/view/View; |
|
|
|
.line 325 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamResolutionView:Landroid/view/View; |
|
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 326 |
|
const v0, 0x7f0c00c6 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamPrivacytView:Landroid/view/View; |
|
|
|
.line 327 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamPrivacytView:Landroid/view/View; |
|
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 329 |
|
new-instance v6, Landroid/widget/ListView; |
|
|
|
invoke-direct {v6, p0}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V |
|
|
|
.line 330 |
|
new-instance v7, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V |
|
|
|
.line 335 |
|
new-instance v0, Lcom/viatech/camera/CreateLiveStreamActivity$TextField; |
|
|
|
const-string v2, "720p" |
|
|
|
const-string v3, "720p" |
|
|
|
const/16 v4, 0x5a0 |
|
|
|
const/16 v5, 0x2d0 |
|
|
|
move-object v1, p0 |
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/viatech/camera/CreateLiveStreamActivity$TextField;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/lang/String;Ljava/lang/String;II)V |
|
|
|
invoke-interface {v7, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z |
|
|
|
.line 336 |
|
new-instance v0, Lcom/viatech/camera/CreateLiveStreamActivity$TextField; |
|
|
|
const-string v2, "1080p" |
|
|
|
const-string v3, "1080p" |
|
|
|
const/16 v4, 0x780 |
|
|
|
const/16 v5, 0x3c0 |
|
|
|
move-object v1, p0 |
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/viatech/camera/CreateLiveStreamActivity$TextField;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/lang/String;Ljava/lang/String;II)V |
|
|
|
invoke-interface {v7, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z |
|
|
|
.line 338 |
|
new-instance v1, Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
|
|
invoke-interface {v7, v8}, Ljava/util/List;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/viatech/camera/CreateLiveStreamActivity$TextField; |
|
|
|
invoke-direct {v1, p0, v7, p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/util/List;Landroid/content/Context;Lcom/viatech/camera/CreateLiveStreamActivity$TextField;)V |
|
|
|
iput-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mResotionListAdapter:Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
|
|
.line 339 |
|
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamResolutionTxt:Landroid/widget/TextView; |
|
|
|
invoke-interface {v7, v8}, Ljava/util/List;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/viatech/camera/CreateLiveStreamActivity$TextField; |
|
|
|
iget-object v0, v0, Lcom/viatech/camera/CreateLiveStreamActivity$TextField;->description:Ljava/lang/String; |
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 340 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mResotionListAdapter:Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
|
|
invoke-virtual {v6, v0}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V |
|
|
|
.line 341 |
|
new-instance v0, Lcom/viatech/camera/CreateLiveStreamActivity$2; |
|
|
|
invoke-direct {v0, p0}, Lcom/viatech/camera/CreateLiveStreamActivity$2;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V |
|
|
|
invoke-virtual {v6, v0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V |
|
|
|
.line 350 |
|
new-instance v0, Lcom/viatech/widget/VPaiDialog$Builder; |
|
|
|
invoke-direct {v0, p0}, Lcom/viatech/widget/VPaiDialog$Builder;-><init>(Landroid/content/Context;)V |
|
|
|
.line 351 |
|
const v1, 0x7f0701df |
|
|
|
invoke-virtual {v0, v1}, Lcom/viatech/widget/VPaiDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder; |
|
|
|
.line 352 |
|
invoke-virtual {v0, v6}, Lcom/viatech/widget/VPaiDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder; |
|
|
|
.line 353 |
|
invoke-virtual {v0}, Lcom/viatech/widget/VPaiDialog$Builder;->create()Landroid/app/AlertDialog; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamResolutionDialog:Landroid/app/Dialog; |
|
|
|
.line 355 |
|
new-instance v1, Landroid/widget/ListView; |
|
|
|
invoke-direct {v1, p0}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V |
|
|
|
.line 356 |
|
new-instance v2, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V |
|
|
|
.line 357 |
|
new-instance v0, Lcom/viatech/camera/CreateLiveStreamActivity$TextField; |
|
|
|
const-string v3, "public" |
|
|
|
const v4, 0x7f0700df |
|
|
|
invoke-virtual {p0, v4}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v4 |
|
|
|
invoke-direct {v0, p0, v3, v4}, Lcom/viatech/camera/CreateLiveStreamActivity$TextField;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/lang/String;Ljava/lang/String;)V |
|
|
|
invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z |
|
|
|
.line 360 |
|
new-instance v0, Lcom/viatech/camera/CreateLiveStreamActivity$TextField; |
|
|
|
const-string v3, "private" |
|
|
|
const v4, 0x7f0700de |
|
|
|
invoke-virtual {p0, v4}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v4 |
|
|
|
invoke-direct {v0, p0, v3, v4}, Lcom/viatech/camera/CreateLiveStreamActivity$TextField;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/lang/String;Ljava/lang/String;)V |
|
|
|
invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z |
|
|
|
.line 361 |
|
new-instance v3, Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
|
|
invoke-interface {v2, v8}, Ljava/util/List;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/viatech/camera/CreateLiveStreamActivity$TextField; |
|
|
|
invoke-direct {v3, p0, v2, p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/util/List;Landroid/content/Context;Lcom/viatech/camera/CreateLiveStreamActivity$TextField;)V |
|
|
|
iput-object v3, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mPrivacyListAdapter:Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
|
|
.line 362 |
|
iget-object v3, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamPrivacyTxt:Landroid/widget/TextView; |
|
|
|
invoke-interface {v2, v8}, Ljava/util/List;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/viatech/camera/CreateLiveStreamActivity$TextField; |
|
|
|
iget-object v0, v0, Lcom/viatech/camera/CreateLiveStreamActivity$TextField;->description:Ljava/lang/String; |
|
|
|
invoke-virtual {v3, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 363 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mPrivacyListAdapter:Lcom/viatech/camera/CreateLiveStreamActivity$TextListAdapter; |
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V |
|
|
|
.line 364 |
|
new-instance v0, Lcom/viatech/camera/CreateLiveStreamActivity$3; |
|
|
|
invoke-direct {v0, p0}, Lcom/viatech/camera/CreateLiveStreamActivity$3;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V |
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V |
|
|
|
.line 373 |
|
new-instance v0, Lcom/viatech/widget/VPaiDialog$Builder; |
|
|
|
invoke-direct {v0, p0}, Lcom/viatech/widget/VPaiDialog$Builder;-><init>(Landroid/content/Context;)V |
|
|
|
.line 374 |
|
const v2, 0x7f0700dd |
|
|
|
invoke-virtual {v0, v2}, Lcom/viatech/widget/VPaiDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder; |
|
|
|
.line 375 |
|
invoke-virtual {v0, v1}, Lcom/viatech/widget/VPaiDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder; |
|
|
|
.line 376 |
|
invoke-virtual {v0}, Lcom/viatech/widget/VPaiDialog$Builder;->create()Landroid/app/AlertDialog; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamPrivacyDialog:Landroid/app/Dialog; |
|
|
|
.line 378 |
|
new-instance v0, Landroid/app/ProgressDialog; |
|
|
|
invoke-direct {v0, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamProgressDialog:Landroid/app/ProgressDialog; |
|
|
|
.line 379 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamProgressDialog:Landroid/app/ProgressDialog; |
|
|
|
invoke-virtual {v0, v10}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V |
|
|
|
.line 380 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamProgressDialog:Landroid/app/ProgressDialog; |
|
|
|
invoke-virtual {v0, v9}, Landroid/app/ProgressDialog;->setTitle(Ljava/lang/CharSequence;)V |
|
|
|
.line 381 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamProgressDialog:Landroid/app/ProgressDialog; |
|
|
|
invoke-virtual {v0, v8}, Landroid/app/ProgressDialog;->setCancelable(Z)V |
|
|
|
.line 382 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamProgressDialog:Landroid/app/ProgressDialog; |
|
|
|
const/4 v1, -0x1 |
|
|
|
invoke-virtual {p0, v11}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v2 |
|
|
|
new-instance v3, Lcom/viatech/camera/CreateLiveStreamActivity$4; |
|
|
|
invoke-direct {v3, p0}, Lcom/viatech/camera/CreateLiveStreamActivity$4;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V |
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/app/ProgressDialog;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V |
|
|
|
.line 413 |
|
new-instance v0, Landroid/app/ProgressDialog; |
|
|
|
invoke-direct {v0, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mStatusProgressDialog:Landroid/app/ProgressDialog; |
|
|
|
.line 414 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mStatusProgressDialog:Landroid/app/ProgressDialog; |
|
|
|
invoke-virtual {v0, v10}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V |
|
|
|
.line 415 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mStatusProgressDialog:Landroid/app/ProgressDialog; |
|
|
|
invoke-virtual {v0, v9}, Landroid/app/ProgressDialog;->setTitle(Ljava/lang/CharSequence;)V |
|
|
|
.line 416 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mStatusProgressDialog:Landroid/app/ProgressDialog; |
|
|
|
invoke-virtual {v0, v8}, Landroid/app/ProgressDialog;->setCancelable(Z)V |
|
|
|
.line 419 |
|
new-instance v0, Lcom/viatech/widget/VPaiDialog$Builder; |
|
|
|
invoke-direct {v0, p0}, Lcom/viatech/widget/VPaiDialog$Builder;-><init>(Landroid/content/Context;)V |
|
|
|
.line 420 |
|
invoke-virtual {v0, v9}, Lcom/viatech/widget/VPaiDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder; |
|
|
|
.line 421 |
|
invoke-virtual {v0, v8}, Lcom/viatech/widget/VPaiDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder; |
|
|
|
.line 422 |
|
const v1, 0x7f070091 |
|
|
|
invoke-virtual {p0, v1}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Lcom/viatech/widget/VPaiDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder; |
|
|
|
.line 423 |
|
invoke-virtual {p0, v11}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
new-instance v2, Lcom/viatech/camera/CreateLiveStreamActivity$5; |
|
|
|
invoke-direct {v2, p0}, Lcom/viatech/camera/CreateLiveStreamActivity$5;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V |
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/viatech/widget/VPaiDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder; |
|
|
|
.line 429 |
|
const v1, 0x7f07012d |
|
|
|
invoke-virtual {p0, v1}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
new-instance v2, Lcom/viatech/camera/CreateLiveStreamActivity$6; |
|
|
|
invoke-direct {v2, p0}, Lcom/viatech/camera/CreateLiveStreamActivity$6;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V |
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/viatech/widget/VPaiDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder; |
|
|
|
.line 439 |
|
invoke-virtual {v0}, Lcom/viatech/widget/VPaiDialog$Builder;->create()Landroid/app/AlertDialog; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mEnableLiveFeaturesDialog:Landroid/app/AlertDialog; |
|
|
|
.line 441 |
|
invoke-static {p0}, Lcom/viatech/util/Util;->isArLanguage(Landroid/content/Context;)Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_0 |
|
|
|
.line 442 |
|
const v0, 0x7f0c00c7 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
.line 443 |
|
invoke-virtual {v0}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; |
|
|
|
move-result-object v1 |
|
|
|
check-cast v1, Landroid/widget/RelativeLayout$LayoutParams; |
|
|
|
.line 444 |
|
const/16 v2, 0x9 |
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V |
|
|
|
.line 445 |
|
invoke-virtual {v1, v8, v12}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V |
|
|
|
.line 446 |
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V |
|
|
|
.line 450 |
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method private initWeiboLive()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 1206 |
|
return-void |
|
.end method |
|
|
|
.method private isFBLogined()Z |
|
.locals 2 |
|
|
|
.prologue |
|
.line 1209 |
|
invoke-static {}, Lcom/facebook/AccessToken;->getCurrentAccessToken()Lcom/facebook/AccessToken; |
|
|
|
move-result-object v0 |
|
|
|
.line 1210 |
|
if-eqz v0, :cond_0 |
|
|
|
invoke-virtual {v0}, Lcom/facebook/AccessToken;->isExpired()Z |
|
|
|
move-result v1 |
|
|
|
if-nez v1, :cond_0 |
|
|
|
invoke-virtual {v0}, Lcom/facebook/AccessToken;->getUserId()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
if-nez v0, :cond_1 |
|
|
|
.line 1211 |
|
:cond_0 |
|
const/4 v0, 0x0 |
|
|
|
.line 1218 |
|
:goto_0 |
|
return v0 |
|
|
|
:cond_1 |
|
const/4 v0, 0x1 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method private refreshFacebookLiveStatus()Z |
|
.locals 6 |
|
|
|
.prologue |
|
const/16 v5, 0x8 |
|
|
|
const/4 v4, 0x0 |
|
|
|
const/4 v1, 0x0 |
|
|
|
.line 664 |
|
invoke-static {}, Lcom/viatech/cloud/CloudConfig;->curUser()Lcom/viatech/cloud/CloudConfig$LoginUser; |
|
|
|
move-result-object v0 |
|
|
|
.line 665 |
|
invoke-virtual {v0}, Lcom/viatech/cloud/CloudConfig$LoginUser;->isFBLogin()Z |
|
|
|
move-result v2 |
|
|
|
.line 667 |
|
if-eqz v2, :cond_1 |
|
|
|
.line 668 |
|
invoke-static {}, Lcom/facebook/Profile;->getCurrentProfile()Lcom/facebook/Profile; |
|
|
|
move-result-object v0 |
|
|
|
.line 669 |
|
if-eqz v0, :cond_1 |
|
|
|
.line 670 |
|
invoke-static {}, Lcom/facebook/Profile;->getCurrentProfile()Lcom/facebook/Profile; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Lcom/facebook/Profile;->getName()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
.line 673 |
|
:goto_0 |
|
if-eqz v2, :cond_0 |
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
|
|
|
move-result v3 |
|
|
|
if-nez v3, :cond_0 |
|
|
|
.line 674 |
|
iget-object v3, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserNameTxt:Landroid/widget/TextView; |
|
|
|
invoke-virtual {v3, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 675 |
|
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserNameTxt:Landroid/widget/TextView; |
|
|
|
invoke-virtual {v1, v5}, Landroid/widget/TextView;->setVisibility(I)V |
|
|
|
.line 676 |
|
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserEmailTxt:Landroid/widget/TextView; |
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 677 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserEmailTxt:Landroid/widget/TextView; |
|
|
|
invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V |
|
|
|
.line 684 |
|
:goto_1 |
|
return v2 |
|
|
|
.line 679 |
|
:cond_0 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserEmailTxt:Landroid/widget/TextView; |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 680 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserEmailTxt:Landroid/widget/TextView; |
|
|
|
invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V |
|
|
|
.line 681 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserNameTxt:Landroid/widget/TextView; |
|
|
|
const v1, 0x7f0700cd |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V |
|
|
|
.line 682 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserNameTxt:Landroid/widget/TextView; |
|
|
|
invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V |
|
|
|
goto :goto_1 |
|
|
|
:cond_1 |
|
move-object v0, v1 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method private requestFBLivePermission()V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 1250 |
|
const/4 v0, 0x1 |
|
|
|
new-array v0, v0, [Ljava/lang/String; |
|
|
|
const/4 v1, 0x0 |
|
|
|
const-string v2, "publish_video" |
|
|
|
aput-object v2, v0, v1 |
|
|
|
.line 1251 |
|
invoke-static {}, Lcom/facebook/login/LoginManager;->getInstance()Lcom/facebook/login/LoginManager; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v1, p0, v0}, Lcom/facebook/login/LoginManager;->logInWithPublishPermissions(Landroid/app/Activity;Ljava/util/Collection;)V |
|
|
|
.line 1252 |
|
return-void |
|
.end method |
|
|
|
.method private requestFBLogin()V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 1245 |
|
const/4 v0, 0x1 |
|
|
|
new-array v0, v0, [Ljava/lang/String; |
|
|
|
const/4 v1, 0x0 |
|
|
|
const-string v2, "public_profile" |
|
|
|
aput-object v2, v0, v1 |
|
|
|
.line 1246 |
|
invoke-static {}, Lcom/facebook/login/LoginManager;->getInstance()Lcom/facebook/login/LoginManager; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v1, p0, v0}, Lcom/facebook/login/LoginManager;->logInWithReadPermissions(Landroid/app/Activity;Ljava/util/Collection;)V |
|
|
|
.line 1247 |
|
return-void |
|
.end method |
|
|
|
.method private requestYouTubeLivePermission()V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 457 |
|
const/4 v0, 0x1 |
|
|
|
new-array v0, v0, [Ljava/lang/String; |
|
|
|
const/4 v1, 0x0 |
|
|
|
const-string v2, "android.permission.GET_ACCOUNTS" |
|
|
|
aput-object v2, v0, v1 |
|
|
|
const/16 v1, 0x64 |
|
|
|
invoke-static {p0, v0, v1}, Landroid/support/v4/app/ActivityCompat;->requestPermissions(Landroid/app/Activity;[Ljava/lang/String;I)V |
|
|
|
.line 458 |
|
return-void |
|
.end method |
|
|
|
.method private setActionBarMidtitleAndUpIndicator(Ljava/lang/String;I)V |
|
.locals 7 |
|
|
|
.prologue |
|
const/4 v6, 0x0 |
|
|
|
const/4 v5, -0x2 |
|
|
|
const/4 v4, 0x1 |
|
|
|
.line 506 |
|
invoke-virtual {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->getActionBar()Landroid/app/ActionBar; |
|
|
|
move-result-object v0 |
|
|
|
.line 507 |
|
if-eqz v0, :cond_1 |
|
|
|
.line 508 |
|
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayHomeAsUpEnabled(Z)V |
|
|
|
.line 509 |
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I |
|
|
|
const/16 v2, 0x12 |
|
|
|
if-lt v1, v2, :cond_0 |
|
|
|
.line 510 |
|
invoke-virtual {v0, p2}, Landroid/app/ActionBar;->setHomeAsUpIndicator(I)V |
|
|
|
.line 511 |
|
:cond_0 |
|
const/4 v1, 0x0 |
|
|
|
invoke-virtual {v0, v1}, Landroid/app/ActionBar;->setTitle(Ljava/lang/CharSequence;)V |
|
|
|
.line 512 |
|
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowTitleEnabled(Z)V |
|
|
|
.line 513 |
|
invoke-virtual {v0, v6}, Landroid/app/ActionBar;->setDisplayShowHomeEnabled(Z)V |
|
|
|
.line 514 |
|
new-instance v1, Landroid/widget/TextView; |
|
|
|
invoke-direct {v1, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V |
|
|
|
.line 515 |
|
invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 516 |
|
const/4 v2, -0x1 |
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V |
|
|
|
.line 517 |
|
invoke-virtual {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v2 |
|
|
|
const v3, 0x7f0800c0 |
|
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimension(I)F |
|
|
|
move-result v2 |
|
|
|
invoke-virtual {v1, v6, v2}, Landroid/widget/TextView;->setTextSize(IF)V |
|
|
|
.line 518 |
|
new-instance v2, Landroid/app/ActionBar$LayoutParams; |
|
|
|
const/16 v3, 0x11 |
|
|
|
invoke-direct {v2, v5, v5, v3}, Landroid/app/ActionBar$LayoutParams;-><init>(III)V |
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/app/ActionBar;->setCustomView(Landroid/view/View;Landroid/app/ActionBar$LayoutParams;)V |
|
|
|
.line 520 |
|
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowCustomEnabled(Z)V |
|
|
|
.line 522 |
|
:cond_1 |
|
return-void |
|
.end method |
|
|
|
.method private showFBLiveTip2Ui(Ljava/lang/String;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 1255 |
|
new-instance v0, Lcom/viatech/camera/CreateLiveStreamActivity$10; |
|
|
|
invoke-direct {v0, p0, p1}, Lcom/viatech/camera/CreateLiveStreamActivity$10;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/lang/String;)V |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->runOnUiThread(Ljava/lang/Runnable;)V |
|
|
|
.line 1266 |
|
return-void |
|
.end method |
|
|
|
.method private showMsg2Ui(Ljava/lang/String;)V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 1282 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mHandler:Landroid/os/Handler; |
|
|
|
new-instance v1, Lcom/viatech/camera/CreateLiveStreamActivity$12; |
|
|
|
invoke-direct {v1, p0, p1}, Lcom/viatech/camera/CreateLiveStreamActivity$12;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/lang/String;)V |
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z |
|
|
|
.line 1288 |
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method protected onActivityResult(IILandroid/content/Intent;)V |
|
.locals 6 |
|
|
|
.prologue |
|
const/16 v5, 0x65 |
|
|
|
const/4 v4, 0x0 |
|
|
|
.line 253 |
|
invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V |
|
|
|
.line 255 |
|
iget v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLivePlatformType:I |
|
|
|
packed-switch v0, :pswitch_data_0 |
|
|
|
.line 286 |
|
:cond_0 |
|
:goto_0 |
|
return-void |
|
|
|
.line 257 |
|
:pswitch_0 |
|
const-string v0, "Vpai_CreateLiveStreamActivity" |
|
|
|
const-string v1, "onActivityResult LIVE_PLATFORM_FACEBOOK" |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 258 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mFBCallbackManager:Lcom/facebook/CallbackManager; |
|
|
|
invoke-interface {v0, p1, p2, p3}, Lcom/facebook/CallbackManager;->onActivityResult(IILandroid/content/Intent;)Z |
|
|
|
.line 259 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mHandler:Landroid/os/Handler; |
|
|
|
invoke-virtual {v0, v5}, Landroid/os/Handler;->removeMessages(I)V |
|
|
|
.line 260 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mHandler:Landroid/os/Handler; |
|
|
|
const-wide/16 v2, 0x7d0 |
|
|
|
invoke-virtual {v0, v5, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z |
|
|
|
goto :goto_0 |
|
|
|
.line 264 |
|
:pswitch_1 |
|
const-string v0, "Vpai_CreateLiveStreamActivity" |
|
|
|
const-string v1, "onActivityResult LIVE_PLATFORM_YOUTUBE" |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 265 |
|
sget v0, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->REQUEST_LOGIN_YOUTUBE:I |
|
|
|
if-ne p1, v0, :cond_0 |
|
|
|
.line 266 |
|
iput-boolean v4, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mAutoLogin:Z |
|
|
|
.line 267 |
|
const/4 v0, -0x1 |
|
|
|
if-ne p2, v0, :cond_0 |
|
|
|
if-eqz p3, :cond_0 |
|
|
|
.line 268 |
|
invoke-virtual {p3}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle; |
|
|
|
move-result-object v0 |
|
|
|
const-string v1, "authAccount" |
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
.line 269 |
|
const-string v1, "Vpai_CreateLiveStreamActivity" |
|
|
|
new-instance v2, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v3, "accountName:" |
|
|
|
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 270 |
|
invoke-static {v0}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->saveGoogleAccount(Ljava/lang/String;)V |
|
|
|
.line 271 |
|
invoke-static {}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->getLoginAccountName()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 272 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserEmailTxt:Landroid/widget/TextView; |
|
|
|
invoke-static {}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->getLoginAccountName()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 273 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserNameTxt:Landroid/widget/TextView; |
|
|
|
invoke-static {}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->getLoginAccountNickname()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 274 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamUserEmailTxt:Landroid/widget/TextView; |
|
|
|
invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V |
|
|
|
goto :goto_0 |
|
|
|
.line 255 |
|
:pswitch_data_0 |
|
.packed-switch 0x0 |
|
:pswitch_1 |
|
:pswitch_0 |
|
.end packed-switch |
|
.end method |
|
|
|
.method public onBackPressed()V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 305 |
|
invoke-virtual {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->getIntent()Landroid/content/Intent; |
|
|
|
move-result-object v0 |
|
|
|
.line 306 |
|
const-string v1, "broadcast_living" |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; |
|
|
|
.line 307 |
|
const/4 v1, -0x1 |
|
|
|
invoke-virtual {p0, v1, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->setResult(ILandroid/content/Intent;)V |
|
|
|
.line 308 |
|
invoke-virtual {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->finish()V |
|
|
|
.line 309 |
|
return-void |
|
.end method |
|
|
|
.method public onClick(Landroid/view/View;)V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 226 |
|
const-string v0, "Vpai_CreateLiveStreamActivity" |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "onclick id: " |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getId()I |
|
|
|
move-result v2 |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 227 |
|
invoke-virtual {p1}, Landroid/view/View;->getId()I |
|
|
|
move-result v0 |
|
|
|
sparse-switch v0, :sswitch_data_0 |
|
|
|
.line 249 |
|
:cond_0 |
|
:goto_0 |
|
return-void |
|
|
|
.line 229 |
|
:sswitch_0 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->doStartLiveStream()V |
|
|
|
goto :goto_0 |
|
|
|
.line 232 |
|
:sswitch_1 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->doShowResolutionDialog()V |
|
|
|
goto :goto_0 |
|
|
|
.line 235 |
|
:sswitch_2 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->doShowPrivacyDialog()V |
|
|
|
goto :goto_0 |
|
|
|
.line 238 |
|
:sswitch_3 |
|
iget v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLivePlatformType:I |
|
|
|
if-nez v0, :cond_1 |
|
|
|
.line 239 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->doLoginYouTube()V |
|
|
|
goto :goto_0 |
|
|
|
.line 240 |
|
:cond_1 |
|
iget v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLivePlatformType:I |
|
|
|
const/4 v1, 0x1 |
|
|
|
if-ne v0, v1, :cond_0 |
|
|
|
.line 241 |
|
invoke-static {}, Lcom/viatech/cloud/CloudConfig;->curUser()Lcom/viatech/cloud/CloudConfig$LoginUser; |
|
|
|
move-result-object v0 |
|
|
|
.line 242 |
|
invoke-virtual {v0}, Lcom/viatech/cloud/CloudConfig$LoginUser;->isFBLogin()Z |
|
|
|
move-result v0 |
|
|
|
.line 243 |
|
if-nez v0, :cond_0 |
|
|
|
.line 244 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->doFacebookLiveLogin()V |
|
|
|
goto :goto_0 |
|
|
|
.line 227 |
|
nop |
|
|
|
:sswitch_data_0 |
|
.sparse-switch |
|
0x7f0c00bb -> :sswitch_1 |
|
0x7f0c00c0 -> :sswitch_0 |
|
0x7f0c00c2 -> :sswitch_3 |
|
0x7f0c00c6 -> :sswitch_2 |
|
.end sparse-switch |
|
.end method |
|
|
|
.method protected onCreate(Landroid/os/Bundle;)V |
|
.locals 6 |
|
|
|
.prologue |
|
const v5, 0x7f0c00c3 |
|
|
|
const v4, 0x7f020081 |
|
|
|
const/4 v3, -0x1 |
|
|
|
.line 178 |
|
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V |
|
|
|
.line 179 |
|
const v0, 0x7f030027 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->setContentView(I)V |
|
|
|
.line 180 |
|
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 182 |
|
sget-object v0, Lcom/viatech/camera/CreateLiveStreamActivity;->sVPaiDevice:Lcom/viatech/device/VPaiDevice; |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice; |
|
|
|
.line 183 |
|
const v0, 0x7f0c00c1 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/ImageView; |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamPlatformLogo:Landroid/widget/ImageView; |
|
|
|
.line 185 |
|
invoke-virtual {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->getIntent()Landroid/content/Intent; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle; |
|
|
|
move-result-object v0 |
|
|
|
.line 186 |
|
if-eqz v0, :cond_0 |
|
|
|
.line 187 |
|
const-string v1, "type" |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I |
|
|
|
move-result v0 |
|
|
|
iput v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLivePlatformType:I |
|
|
|
.line 190 |
|
:cond_0 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->initView()V |
|
|
|
.line 192 |
|
iget v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLivePlatformType:I |
|
|
|
packed-switch v0, :pswitch_data_0 |
|
|
|
.line 221 |
|
:goto_0 |
|
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->initData()V |
|
|
|
.line 222 |
|
return-void |
|
|
|
.line 194 |
|
:pswitch_0 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamStartBtn:Landroid/widget/Button; |
|
|
|
const v1, 0x7f0201c1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V |
|
|
|
.line 195 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamStartBtn:Landroid/widget/Button; |
|
|
|
invoke-virtual {v0, v3}, Landroid/widget/Button;->setTextColor(I)V |
|
|
|
.line 196 |
|
const v0, 0x7f070073 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
invoke-direct {p0, v0, v4}, Lcom/viatech/camera/CreateLiveStreamActivity;->setActionBarMidtitleAndUpIndicator(Ljava/lang/String;I)V |
|
|
|
.line 197 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamPlatformLogo:Landroid/widget/ImageView; |
|
|
|
const v1, 0x7f02023c |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V |
|
|
|
.line 198 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamPlatformLogo:Landroid/widget/ImageView; |
|
|
|
const v1, -0x20ceda |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundColor(I)V |
|
|
|
.line 199 |
|
invoke-virtual {p0, v5}, Lcom/viatech/camera/CreateLiveStreamActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/ImageView; |
|
|
|
invoke-virtual {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v1 |
|
|
|
const v2, 0x7f02023b |
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 202 |
|
:pswitch_1 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamStartBtn:Landroid/widget/Button; |
|
|
|
const v1, 0x7f020077 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V |
|
|
|
.line 203 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamStartBtn:Landroid/widget/Button; |
|
|
|
invoke-virtual {v0, v3}, Landroid/widget/Button;->setTextColor(I)V |
|
|
|
.line 204 |
|
const v0, 0x7f0700ce |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
invoke-direct {p0, v0, v4}, Lcom/viatech/camera/CreateLiveStreamActivity;->setActionBarMidtitleAndUpIndicator(Ljava/lang/String;I)V |
|
|
|
.line 205 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamPlatformLogo:Landroid/widget/ImageView; |
|
|
|
const v1, 0x7f020129 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V |
|
|
|
.line 206 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity;->mLiveStreamPlatformLogo:Landroid/widget/ImageView; |
|
|
|
const v1, -0xc7a868 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundColor(I)V |
|
|
|
.line 207 |
|
invoke-virtual {p0, v5}, Lcom/viatech/camera/CreateLiveStreamActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/ImageView; |
|
|
|
invoke-virtual {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v1 |
|
|
|
const v2, 0x7f020128 |
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 192 |
|
nop |
|
|
|
:pswitch_data_0 |
|
.packed-switch 0x0 |
|
:pswitch_0 |
|
:pswitch_1 |
|
.end packed-switch |
|
.end method |
|
|
|
.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z |
|
.locals 2 |
|
|
|
.prologue |
|
.line 296 |
|
invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I |
|
|
|
move-result v0 |
|
|
|
const v1, 0x102002c |
|
|
|
if-ne v0, v1, :cond_0 |
|
|
|
.line 297 |
|
invoke-virtual {p0}, Lcom/viatech/camera/CreateLiveStreamActivity;->onBackPressed()V |
|
|
|
.line 299 |
|
:cond_0 |
|
const/4 v0, 0x1 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method protected onResume()V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 290 |
|
invoke-super {p0}, Landroid/app/Activity;->onResume()V |
|
|
|
.line 291 |
|
const-string v0, "Vpai_CreateLiveStreamActivity" |
|
|
|
const-string v1, "onResume" |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 292 |
|
return-void |
|
.end method
|
|
|