SmartHomeGuideFragment.smali
.class public Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;
.super Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;
# static fields
.field private static final MSG_GET_INSTALL:I = 0x1
.field private static final PLATFORM_ID:Ljava/lang/String; = "platform_id"
.field private static final REFRESH_INTERVAL:J = 0x1f4L
.field private static final TECENT_DOWNLOAD:Ljava/lang/String; = "com.tencent.android.qqdownloader"
.field private static final TECENT_MARKET_URL:Ljava/lang/String; = "http://a.app.qq.com/o/simple.jsp?pkgname="
# instance fields
.field private mBodyTv:Landroid/widget/TextView;
.field private mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
.field private mGuideList:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;",
">;"
}
.end annotation
.end field
.field private mHandler:Landroid/os/Handler;
.field private mIconIv:Landroid/widget/ImageView;
.field private mIsAPPInstalled:Z
.field private mNextTv:Landroid/widget/TextView;
.field private mPackageName:Ljava/lang/String;
.field private mStep:I
.field private mTipIv:Landroid/widget/ImageView;
.field private mUrl:Ljava/lang/String;
.field private mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
.field private skillListDataBean:Lcom/sdk/orion/bean/SkillListBean$DataBean;
# direct methods
.method public constructor <init>()V
.registers 2
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;-><init>()V
const/4 v0, -0x1
iput v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mStep:I
new-instance v0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment$1;
invoke-direct {v0, p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment$1;-><init>(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;)V
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mHandler:Landroid/os/Handler;
return-void
.end method
.method static synthetic access$000(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;)Ljava/lang/String;
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mPackageName:Ljava/lang/String;
return-object v0
.end method
.method static synthetic access$100(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;)Z
.registers 2
iget-boolean v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIsAPPInstalled:Z
return v0
.end method
.method static synthetic access$102(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;Z)Z
.registers 2
iput-boolean p1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIsAPPInstalled:Z
return p1
.end method
.method static synthetic access$200(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;)I
.registers 2
iget v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mStep:I
return v0
.end method
.method static synthetic access$300(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;)Landroid/widget/TextView;
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mNextTv:Landroid/widget/TextView;
return-object v0
.end method
.method static synthetic access$400(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;)Z
.registers 2
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->isFirstDownloadStep()Z
move-result v0
return v0
.end method
.method static synthetic access$500(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;Z)V
.registers 2
invoke-direct {p0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->handleStep(Z)V
return-void
.end method
.method static synthetic access$600(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;)Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
return-object v0
.end method
.method static synthetic access$700(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;Ljava/lang/String;)V
.registers 2
invoke-direct {p0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->launchAppStore(Ljava/lang/String;)V
return-void
.end method
.method static synthetic access$800(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;Ljava/util/List;)V
.registers 2
invoke-direct {p0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->handleLoadDataSuccess(Ljava/util/List;)V
return-void
.end method
.method static synthetic access$900(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;)V
.registers 1
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->synchDevice()V
return-void
.end method
.method private handleJump()Z
.registers 6
const/4 v1, 0x1
const/4 v0, 0x0
iget-object v2, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mGuideList:Ljava/util/List;
if-eqz v2, :cond_44
iget v2, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mStep:I
iget-object v3, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mGuideList:Ljava/util/List;
invoke-interface {v3}, Ljava/util/List;->size()I
move-result v3
if-ne v2, v3, :cond_44
iget-object v2, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->skillListDataBean:Lcom/sdk/orion/bean/SkillListBean$DataBean;
invoke-virtual {v2}, Lcom/sdk/orion/bean/SkillListBean$DataBean;->getAuth_type()Ljava/lang/String;
move-result-object v3
const/4 v2, -0x1
invoke-virtual {v3}, Ljava/lang/String;->hashCode()I
move-result v4
packed-switch v4, :pswitch_data_72
:cond_1e
move v0, v2
:goto_1f
packed-switch v0, :pswitch_data_7a
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mActivity:Landroid/app/Activity;
iget-object v2, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mActivity:Landroid/app/Activity;
sget v3, Lcom/cmcm/xiaobao/phone/smarthome/R$string;->midea_login:I
invoke-virtual {v2, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;
move-result-object v2
iget-object v3, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->skillListDataBean:Lcom/sdk/orion/bean/SkillListBean$DataBean;
invoke-static {v0, v2, v3}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeLoginFragment;->startSmartLogin(Landroid/content/Context;Ljava/lang/String;Lcom/sdk/orion/bean/SkillListBean$DataBean;)V
:goto_31
iget-boolean v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIsAPPInstalled:Z
if-eqz v0, :cond_6e
const-string/jumbo v0, "15"
:goto_38
invoke-static {v0}, Lcom/cmcm/xiaobao/phone/infoc/reporter/NewSmartHomeReporter;->reportDetailClickData(Ljava/lang/String;)V
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->report()V
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mActivity:Landroid/app/Activity;
invoke-virtual {v0}, Landroid/app/Activity;->finish()V
move v0, v1
:cond_44
return v0
:pswitch_45
const-string/jumbo v4, "3"
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_1e
goto :goto_1f
:pswitch_4f
const-string/jumbo v0, "2"
invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1e
move v0, v1
goto :goto_1f
:pswitch_5a
invoke-static {}, Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;->getInstance()Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;
move-result-object v0
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;->getOptInterface()Lcom/cmcm/xiaobao/phone/smarthome/sdk/OptInterface;
move-result-object v0
iget-object v2, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mActivity:Landroid/app/Activity;
iget-object v3, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->skillListDataBean:Lcom/sdk/orion/bean/SkillListBean$DataBean;
invoke-virtual {v0, v2, v3}, Lcom/cmcm/xiaobao/phone/smarthome/sdk/OptInterface;->openMijiaAuthActivity(Landroid/content/Context;Lcom/sdk/orion/bean/SkillListBean$DataBean;)V
goto :goto_31
:pswitch_6a
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->loginByOAuth2()V
goto :goto_31
:cond_6e
const-string/jumbo v0, "13"
goto :goto_38
:pswitch_data_72
.packed-switch 0x32
:pswitch_4f
:pswitch_45
.end packed-switch
:pswitch_data_7a
.packed-switch 0x0
:pswitch_5a
:pswitch_6a
.end packed-switch
.end method
.method private handleLoadDataSuccess(Ljava/util/List;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;",
">;)V"
}
.end annotation
const/4 v4, 0x1
const/4 v1, 0x0
if-eqz p1, :cond_a
invoke-interface {p1}, Ljava/util/List;->isEmpty()Z
move-result v0
if-eqz v0, :cond_e
:cond_a
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->showRetryView()V
:cond_d
:goto_d
return-void
:cond_e
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->showContentView()V
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mNextTv:Landroid/widget/TextView;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
iget-object v0, v0, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->package_name:Ljava/lang/String;
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mPackageName:Ljava/lang/String;
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mPackageName:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_4f
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mPackageName:Ljava/lang/String;
invoke-static {v0}, Lcom/cmcm/xiaobao/phone/commons/utils/AppUtil;->isAPPInstalled(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_4f
invoke-interface {p1, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object;
iput-boolean v4, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIsAPPInstalled:Z
:goto_35
iput-object p1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mGuideList:Ljava/util/List;
invoke-direct {p0, v4}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->handleStep(Z)V
const-string/jumbo v0, "3"
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->skillListDataBean:Lcom/sdk/orion/bean/SkillListBean$DataBean;
invoke-virtual {v1}, Lcom/sdk/orion/bean/SkillListBean$DataBean;->getAuth_type()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_d
sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$string;->skill_intro_skip:I
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->setRightBtnText(I)V
goto :goto_d
:cond_4f
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mHandler:Landroid/os/Handler;
const-wide/16 v2, 0x1f4
invoke-virtual {v0, v4, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z
goto :goto_35
.end method
.method private handleStep(Z)V
.registers 8
const/4 v5, 0x0
const/16 v4, 0x8
if-eqz p1, :cond_8
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->report()V
:cond_8
if-eqz p1, :cond_11
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->handleJump()Z
move-result v0
if-eqz v0, :cond_11
:cond_10
:goto_10
return-void
:cond_11
iget v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mStep:I
if-eqz p1, :cond_c3
const/4 v0, 0x1
:goto_16
add-int/2addr v0, v1
iput v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mStep:I
iget v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mStep:I
if-ltz v0, :cond_10
if-eqz p1, :cond_25
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->handleJump()Z
move-result v0
if-nez v0, :cond_10
:cond_25
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mGuideList:Ljava/util/List;
if-eqz v0, :cond_10
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mGuideList:Ljava/util/List;
iget v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mStep:I
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mBodyTv:Landroid/widget/TextView;
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
iget-object v1, v1, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->body_text:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->isFirstDownloadStep()Z
move-result v0
if-nez v0, :cond_c6
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mNextTv:Landroid/widget/TextView;
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
iget-object v1, v1, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->button_text:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
:goto_4d
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
iget-object v0, v0, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->resource:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_d9
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
invoke-virtual {v1}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->getVisibility()I
move-result v1
if-nez v1, :cond_64
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
invoke-virtual {v1, v4}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->setVisibility(I)V
:cond_64
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mTipIv:Landroid/widget/ImageView;
invoke-virtual {v1}, Landroid/widget/ImageView;->getVisibility()I
move-result v1
if-nez v1, :cond_71
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mTipIv:Landroid/widget/ImageView;
invoke-virtual {v1, v4}, Landroid/widget/ImageView;->setVisibility(I)V
:cond_71
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIconIv:Landroid/widget/ImageView;
invoke-virtual {v1}, Landroid/widget/ImageView;->getVisibility()I
move-result v1
if-ne v1, v4, :cond_7e
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIconIv:Landroid/widget/ImageView;
invoke-virtual {v1, v5}, Landroid/widget/ImageView;->setVisibility(I)V
:cond_7e
:goto_7e
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
iget-object v1, v1, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->img_url:Ljava/lang/String;
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_b9
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_b9
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
invoke-virtual {v0, v5}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->setVisibility(I)V
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
iget-object v0, v0, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->startButton:Landroid/widget/ImageView;
invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setVisibility(I)V
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
iget-object v0, v0, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->thumbImageView:Landroid/widget/ImageView;
invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setClickable(Z)V
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIconIv:Landroid/widget/ImageView;
invoke-virtual {v0}, Landroid/widget/ImageView;->getVisibility()I
move-result v0
if-nez v0, :cond_ae
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIconIv:Landroid/widget/ImageView;
invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setVisibility(I)V
:cond_ae
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
iget-object v0, v0, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->img_url:Ljava/lang/String;
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
iget-object v1, v1, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->thumbImageView:Landroid/widget/ImageView;
invoke-static {v0, v1}, Lcom/cmcm/xiaobao/phone/smarthome/glide/ImageLoader;->loadImage(Ljava/lang/String;Landroid/widget/ImageView;)V
:cond_b9
if-eqz p1, :cond_10
const-string/jumbo v0, "14"
invoke-static {v0}, Lcom/cmcm/xiaobao/phone/infoc/reporter/NewSmartHomeReporter;->reportDetailClickData(Ljava/lang/String;)V
goto/16 :goto_10
:cond_c3
const/4 v0, -0x1
goto/16 :goto_16
:cond_c6
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mNextTv:Landroid/widget/TextView;
iget-boolean v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIsAPPInstalled:Z
if-nez v0, :cond_d5
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
iget-object v0, v0, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->button_text:Ljava/lang/String;
:goto_d0
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto/16 :goto_4d
:cond_d5
const-string/jumbo v0, "\u6211\u5df2\u4e0b\u8f7d\uff0c\u4e0b\u4e00\u6b65"
goto :goto_d0
:cond_d9
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
invoke-virtual {v1}, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->isVideoType()Z
move-result v1
if-eqz v1, :cond_134
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
invoke-virtual {v1}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->getVisibility()I
move-result v1
if-ne v1, v4, :cond_ee
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
invoke-virtual {v1, v5}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->setVisibility(I)V
:cond_ee
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mTipIv:Landroid/widget/ImageView;
invoke-virtual {v1}, Landroid/widget/ImageView;->getVisibility()I
move-result v1
if-nez v1, :cond_fb
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mTipIv:Landroid/widget/ImageView;
invoke-virtual {v1, v4}, Landroid/widget/ImageView;->setVisibility(I)V
:cond_fb
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIconIv:Landroid/widget/ImageView;
invoke-virtual {v1}, Landroid/widget/ImageView;->getVisibility()I
move-result v1
if-nez v1, :cond_108
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIconIv:Landroid/widget/ImageView;
invoke-virtual {v1, v4}, Landroid/widget/ImageView;->setVisibility(I)V
:cond_108
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mUrl:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_7e
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
iget-object v2, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
iget-object v2, v2, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->resource:Ljava/lang/String;
new-array v3, v5, [Ljava/lang/Object;
invoke-virtual {v1, v2, v5, v3}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->setUp(Ljava/lang/String;I[Ljava/lang/Object;)V
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mUrl:Ljava/lang/String;
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
iget-object v1, v1, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->img_url:Ljava/lang/String;
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_7e
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
iget-object v1, v1, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->img_url:Ljava/lang/String;
iget-object v2, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
iget-object v2, v2, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->thumbImageView:Landroid/widget/ImageView;
invoke-static {v1, v2}, Lcom/cmcm/xiaobao/phone/smarthome/glide/ImageLoader;->loadImage(Ljava/lang/String;Landroid/widget/ImageView;)V
goto/16 :goto_7e
:cond_134
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
invoke-virtual {v1}, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->isImgType()Z
move-result v1
if-eqz v1, :cond_7e
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
invoke-virtual {v1}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->getVisibility()I
move-result v1
if-nez v1, :cond_149
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
invoke-virtual {v1, v4}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->setVisibility(I)V
:cond_149
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mTipIv:Landroid/widget/ImageView;
invoke-virtual {v1}, Landroid/widget/ImageView;->getVisibility()I
move-result v1
if-ne v1, v4, :cond_156
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mTipIv:Landroid/widget/ImageView;
invoke-virtual {v1, v5}, Landroid/widget/ImageView;->setVisibility(I)V
:cond_156
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIconIv:Landroid/widget/ImageView;
invoke-virtual {v1}, Landroid/widget/ImageView;->getVisibility()I
move-result v1
if-nez v1, :cond_163
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIconIv:Landroid/widget/ImageView;
invoke-virtual {v1, v4}, Landroid/widget/ImageView;->setVisibility(I)V
:cond_163
const/16 v1, 0xd2
const/16 v2, 0x175
iget-object v3, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mTipIv:Landroid/widget/ImageView;
invoke-static {v0, v1, v2, v3}, Lcom/cmcm/xiaobao/phone/smarthome/glide/ImageLoader;->loadImage(Ljava/lang/String;IILandroid/widget/ImageView;)V
goto/16 :goto_7e
.end method
.method private isFirstDownloadStep()Z
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
if-eqz v0, :cond_1e
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
iget-object v0, v0, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->resource:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_1e
iget v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mStep:I
if-nez v0, :cond_1e
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
iget-object v0, v0, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->package_name:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_1e
const/4 v0, 0x1
:goto_1d
return v0
:cond_1e
const/4 v0, 0x0
goto :goto_1d
.end method
.method private launchAppStore(Ljava/lang/String;)V
.registers 5
const-string/jumbo v0, "com.tencent.android.qqdownloader"
invoke-static {v0}, Lcom/cmcm/xiaobao/phone/commons/utils/AppUtil;->isAPPInstalled(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_12
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mActivity:Landroid/app/Activity;
const-string/jumbo v1, "com.tencent.android.qqdownloader"
invoke-static {v0, p1, v1}, Lcom/cmcm/xiaobao/phone/commons/utils/AppUtil;->launchAppDetail(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
:goto_11
return-void
:cond_12
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v1, "http://a.app.qq.com/o/simple.jsp?pkgname="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v0
new-instance v1, Landroid/content/Intent;
const-string/jumbo v2, "android.intent.action.VIEW"
invoke-direct {v1, v2, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
invoke-virtual {p0, v1}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->startActivity(Landroid/content/Intent;)V
goto :goto_11
.end method
.method private loginByOAuth2()V
.registers 6
invoke-static {}, Lorg/greenrobot/eventbus/c;->a()Lorg/greenrobot/eventbus/c;
move-result-object v0
new-instance v1, Lcom/cmcm/xiaobao/phone/smarthome/event/EventTag$ShowSyncDialog;
const/4 v2, 0x0
iget-object v3, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->skillListDataBean:Lcom/sdk/orion/bean/SkillListBean$DataBean;
invoke-virtual {v3}, Lcom/sdk/orion/bean/SkillListBean$DataBean;->getOvs_platform_id()Ljava/lang/String;
move-result-object v3
iget-object v4, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->skillListDataBean:Lcom/sdk/orion/bean/SkillListBean$DataBean;
invoke-direct {v1, v2, v3, v4}, Lcom/cmcm/xiaobao/phone/smarthome/event/EventTag$ShowSyncDialog;-><init>(ILjava/lang/String;Lcom/sdk/orion/bean/SkillListBean$DataBean;)V
invoke-virtual {v0, v1}, Lorg/greenrobot/eventbus/c;->c(Ljava/lang/Object;)V
invoke-static {}, Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;->getInstance()Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;
move-result-object v0
new-instance v1, Lcom/cmcm/xiaobao/phone/smarthome/webview/LvMi;
invoke-direct {v1}, Lcom/cmcm/xiaobao/phone/smarthome/webview/LvMi;-><init>()V
invoke-virtual {v0, v1}, Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;->setPlantForm(Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;)Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mActivity:Landroid/app/Activity;
invoke-static {}, Lcom/sdk/orion/bean/PlatformLoginBean;->newBuilder()Lcom/sdk/orion/bean/PlatformLoginBean$Builder;
move-result-object v2
invoke-static {}, Lcom/sdk/orion/utils/Constant;->getUClientId()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Lcom/sdk/orion/bean/PlatformLoginBean$Builder;->clientId(Ljava/lang/String;)Lcom/sdk/orion/bean/PlatformLoginBean$Builder;
move-result-object v2
invoke-static {}, Lcom/sdk/orion/utils/Constant;->getAccessToken()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Lcom/sdk/orion/bean/PlatformLoginBean$Builder;->accessToken(Ljava/lang/String;)Lcom/sdk/orion/bean/PlatformLoginBean$Builder;
move-result-object v2
iget-object v3, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mActivity:Landroid/app/Activity;
invoke-virtual {v3}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v3
const-string/jumbo v4, "android_id"
invoke-static {v3, v4}, Landroid/provider/Settings$System;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Lcom/sdk/orion/bean/PlatformLoginBean$Builder;->deviceId(Ljava/lang/String;)Lcom/sdk/orion/bean/PlatformLoginBean$Builder;
move-result-object v2
iget-object v3, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->skillListDataBean:Lcom/sdk/orion/bean/SkillListBean$DataBean;
invoke-virtual {v3}, Lcom/sdk/orion/bean/SkillListBean$DataBean;->getOvs_skill_id()Ljava/util/ArrayList;
move-result-object v3
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Lcom/sdk/orion/bean/PlatformLoginBean$Builder;->skillId(Ljava/lang/String;)Lcom/sdk/orion/bean/PlatformLoginBean$Builder;
move-result-object v2
iget-object v3, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->skillListDataBean:Lcom/sdk/orion/bean/SkillListBean$DataBean;
invoke-virtual {v3}, Lcom/sdk/orion/bean/SkillListBean$DataBean;->getOvs_platform_id()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Lcom/sdk/orion/bean/PlatformLoginBean$Builder;->platformId(Ljava/lang/String;)Lcom/sdk/orion/bean/PlatformLoginBean$Builder;
move-result-object v2
const-string/jumbo v3, "2"
invoke-virtual {v2, v3}, Lcom/sdk/orion/bean/PlatformLoginBean$Builder;->sourceFlag(Ljava/lang/String;)Lcom/sdk/orion/bean/PlatformLoginBean$Builder;
move-result-object v2
invoke-virtual {v2}, Lcom/sdk/orion/bean/PlatformLoginBean$Builder;->build()Lcom/sdk/orion/bean/PlatformLoginBean;
move-result-object v2
new-instance v3, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment$4;
invoke-direct {v3, p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment$4;-><init>(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;)V
invoke-virtual {v0, v1, v2, v3}, Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;->bindLogin(Landroid/content/Context;Ljava/lang/Object;Lcom/sdk/orion/ui/baselibrary/plantform/listener/ResponseCallBackListener;)V
return-void
.end method
.method private report()V
.registers 3
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
if-eqz v0, :cond_27
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mCurrentGuide:Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/model/SmartHomeGuideBean;->isVideoType()Z
move-result v0
if-eqz v0, :cond_27
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
if-eqz v0, :cond_27
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
invoke-virtual {v0}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->getDuration()I
move-result v0
if-lez v0, :cond_27
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
invoke-virtual {v0}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->getCurrentPositionWhenPlaying()I
move-result v0
mul-int/lit8 v0, v0, 0x64
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
invoke-virtual {v1}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->getDuration()I
move-result v1
div-int/2addr v0, v1
:cond_27
return-void
.end method
.method private setTitleText(Ljava/lang/String;)V
.registers 3
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mActivity:Landroid/app/Activity;
check-cast v0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;
invoke-virtual {v0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;->setTitleText(Ljava/lang/String;)V
return-void
.end method
.method public static startSmartHomeGuide(Landroid/content/Context;Lcom/sdk/orion/bean/SkillListBean$DataBean;)V
.registers 4
.annotation build Landroid/support/annotation/Keep;
.end annotation
const-class v0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;
const/4 v1, 0x0
invoke-static {p0, v0, v1}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;->getStartIntent(Landroid/content/Context;Ljava/lang/Class;Ljava/lang/String;)Landroid/content/Intent;
move-result-object v0
const-string/jumbo v1, "platform_id"
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
return-void
.end method
.method private synchDevice()V
.registers 5
const/4 v3, 0x0
invoke-static {}, Lorg/greenrobot/eventbus/c;->a()Lorg/greenrobot/eventbus/c;
move-result-object v0
new-instance v1, Lcom/cmcm/xiaobao/phone/smarthome/event/EventTag$ShowSyncDialog;
const/4 v2, 0x1
invoke-direct {v1, v2, v3, v3}, Lcom/cmcm/xiaobao/phone/smarthome/event/EventTag$ShowSyncDialog;-><init>(ILjava/lang/String;Lcom/sdk/orion/bean/SkillListBean$DataBean;)V
invoke-virtual {v0, v1}, Lorg/greenrobot/eventbus/c;->c(Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public clickRightBtn()V
.registers 2
invoke-super {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->clickRightBtn()V
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mGuideList:Ljava/util/List;
if-eqz v0, :cond_f
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mGuideList:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
iput v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mStep:I
:cond_f
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->handleJump()Z
return-void
.end method
.method protected getLayoutId()I
.registers 2
sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$layout;->sh_sdk_guide_fragment:I
return v0
.end method
.method public getMiniPlayerBottomMargin()I
.registers 3
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mActivity:Landroid/app/Activity;
const/high16 v1, 0x42960000 # 75.0f
invoke-static {v0, v1}, Lcom/sdk/orion/ui/baselibrary/utils/DensityUtil;->dip2px(Landroid/content/Context;F)I
move-result v0
return v0
.end method
.method public handleClickBack()Z
.registers 2
iget v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mStep:I
if-lez v0, :cond_a
const/4 v0, 0x0
invoke-direct {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->handleStep(Z)V
const/4 v0, 0x1
:goto_9
return v0
:cond_a
invoke-super {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->handleClickBack()Z
move-result v0
goto :goto_9
.end method
.method protected initArguments(Landroid/os/Bundle;)V
.registers 3
invoke-super {p0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->initArguments(Landroid/os/Bundle;)V
const-string/jumbo v0, "platform_id"
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object v0
check-cast v0, Lcom/sdk/orion/bean/SkillListBean$DataBean;
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->skillListDataBean:Lcom/sdk/orion/bean/SkillListBean$DataBean;
return-void
.end method
.method protected initView()V
.registers 3
sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$id;->tv_body:I
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mBodyTv:Landroid/widget/TextView;
sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$id;->tv_next:I
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mNextTv:Landroid/widget/TextView;
sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$id;->iv_tip:I
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mTipIv:Landroid/widget/ImageView;
sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$id;->iv_icon:I
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIconIv:Landroid/widget/ImageView;
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->skillListDataBean:Lcom/sdk/orion/bean/SkillListBean$DataBean;
invoke-virtual {v0}, Lcom/sdk/orion/bean/SkillListBean$DataBean;->getSkill_icon_url()Ljava/lang/String;
move-result-object v0
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mIconIv:Landroid/widget/ImageView;
invoke-static {v0, v1}, Lcom/cmcm/xiaobao/phone/smarthome/glide/ImageLoader;->loadImage(Ljava/lang/String;Landroid/widget/ImageView;)V
sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$id;->view_video:I
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
invoke-virtual {v0}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->hideFullScreenBtn()V
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mVideoPlayer:Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;
invoke-virtual {v0}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayerStandard;->hideBack()V
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mNextTv:Landroid/widget/TextView;
new-instance v1, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment$2;
invoke-direct {v1, p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment$2;-><init>(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;)V
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mBodyTv:Landroid/widget/TextView;
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->initLoadingHelper(Landroid/view/View;)V
return-void
.end method
.method protected loadData()V
.registers 5
invoke-static {}, Lcom/sdk/orion/orion/OrionClient;->getInstance()Lcom/sdk/orion/orion/OrionClient;
move-result-object v0
const-string/jumbo v1, "/SmartHome/getSHGuideInfo"
new-instance v2, Lcom/cmcm/xiaobao/phone/smarthome/model/PlantFormAuthType;
iget-object v3, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->skillListDataBean:Lcom/sdk/orion/bean/SkillListBean$DataBean;
invoke-virtual {v3}, Lcom/sdk/orion/bean/SkillListBean$DataBean;->getOvs_platform_id()Ljava/lang/String;
move-result-object v3
invoke-direct {v2, v3}, Lcom/cmcm/xiaobao/phone/smarthome/model/PlantFormAuthType;-><init>(Ljava/lang/String;)V
new-instance v3, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment$3;
invoke-direct {v3, p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment$3;-><init>(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;)V
invoke-virtual {v0, v1, v2, v3}, Lcom/sdk/orion/orion/OrionClient;->getSmartHomeSdk(Ljava/lang/String;Ljava/lang/Object;Lcom/sdk/orion/callback/ContentCallBack;)V
return-void
.end method
.method public onBackPress()Z
.registers 4
const/4 v1, 0x1
const/4 v0, 0x0
iget v2, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mStep:I
if-lez v2, :cond_a
invoke-direct {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->handleStep(Z)V
:goto_9
return v1
:cond_a
invoke-static {}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayer;->backPress()Z
move-result v2
if-nez v2, :cond_16
invoke-super {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->onBackPress()Z
move-result v2
if-eqz v2, :cond_17
:cond_16
move v0, v1
:cond_17
move v1, v0
goto :goto_9
.end method
.method public onDestroy()V
.registers 3
invoke-super {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->onDestroy()V
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeGuideFragment;->mHandler:Landroid/os/Handler;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V
return-void
.end method
.method public onPause()V
.registers 2
invoke-super {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->onPause()V
:try_start_3
invoke-static {}, Lcom/sdk/orion/ui/baselibrary/widget/video/JCVideoPlayer;->releaseAllVideos()V
:try_end_6
.catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_6} :catch_7
:goto_6
return-void
:catch_7
move-exception v0
invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
goto :goto_6
.end method