OrionCommandBuildThirdStepSayFragment.smali
.class public Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;
.super Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepFragment;
# instance fields
.field private mCommandInputWatcher:Landroid/text/TextWatcher;
.field private mInputTmp:Ljava/lang/String;
.field private maxLen:I
# direct methods
.method public constructor <init>()V
.registers 2
invoke-direct {p0}, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepFragment;-><init>()V
const/16 v0, 0xc8
iput v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->maxLen:I
const-string/jumbo v0, ""
iput-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mInputTmp:Ljava/lang/String;
new-instance v0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment$1;
invoke-direct {v0, p0}, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment$1;-><init>(Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;)V
iput-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mCommandInputWatcher:Landroid/text/TextWatcher;
return-void
.end method
.method static synthetic access$000(Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;)Ljava/lang/String;
.registers 2
iget-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mInputTmp:Ljava/lang/String;
return-object v0
.end method
.method static synthetic access$002(Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;Ljava/lang/String;)Ljava/lang/String;
.registers 2
iput-object p1, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mInputTmp:Ljava/lang/String;
return-object p1
.end method
.method private initSayBackFillData()V
.registers 4
iget-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mActivity:Lcom/sdk/orion/lib/xb/OrionCommandBuildActivity;
invoke-virtual {v0}, Lcom/sdk/orion/lib/xb/OrionCommandBuildActivity;->getCommandInfo()Lcom/sdk/orion/bean/CommandBean;
move-result-object v0
if-eqz v0, :cond_45
iget-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mActivity:Lcom/sdk/orion/lib/xb/OrionCommandBuildActivity;
invoke-virtual {v0}, Lcom/sdk/orion/lib/xb/OrionCommandBuildActivity;->getCommandInfo()Lcom/sdk/orion/bean/CommandBean;
move-result-object v0
invoke-virtual {v0}, Lcom/sdk/orion/bean/CommandBean;->getIntent()Ljava/lang/String;
move-result-object v0
sget-object v1, Lcom/sdk/orion/lib/xb/utils/OrionCommandParamsUtil;->intentData:[Ljava/lang/String;
const/4 v2, 0x0
aget-object v1, v1, v2
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_45
iget-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mSayInput:Landroid/widget/EditText;
iget-object v1, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mActivity:Lcom/sdk/orion/lib/xb/OrionCommandBuildActivity;
invoke-virtual {v1}, Lcom/sdk/orion/lib/xb/OrionCommandBuildActivity;->getCommandInfo()Lcom/sdk/orion/bean/CommandBean;
move-result-object v1
invoke-virtual {v1}, Lcom/sdk/orion/bean/CommandBean;->getText()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
iget-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mSayInput:Landroid/widget/EditText;
iget-object v1, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mSayInput:Landroid/widget/EditText;
invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
move-result-object v1
invoke-interface {v1}, Landroid/text/Editable;->length()I
move-result v1
invoke-virtual {v0, v1}, Landroid/widget/EditText;->setSelection(I)V
iget-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mCommandBuildInterface:Lcom/sdk/orion/lib/xb/OrionCommandBuild;
if-eqz v0, :cond_45
iget-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mCommandBuildInterface:Lcom/sdk/orion/lib/xb/OrionCommandBuild;
const/4 v1, 0x1
invoke-interface {v0, v1}, Lcom/sdk/orion/lib/xb/OrionCommandBuild;->setNextStatus(Z)V
:cond_45
return-void
.end method
.method private setCommandBuildStepSayUI()V
.registers 3
iget-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mCommandBuildInterface:Lcom/sdk/orion/lib/xb/OrionCommandBuild;
if-eqz v0, :cond_f
iget-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mCommandBuildInterface:Lcom/sdk/orion/lib/xb/OrionCommandBuild;
sget v1, Lcom/sdk/orion/lib/xb/R$string;->orion_sdk_command_setting_third_step_say_hint:I
invoke-static {v1}, Lcom/sdk/orion/ui/baselibrary/config/OrionResConfig;->changeNameInRes(I)Ljava/lang/String;
move-result-object v1
invoke-interface {v0, v1}, Lcom/sdk/orion/lib/xb/OrionCommandBuild;->setHeadHintText(Ljava/lang/String;)V
:cond_f
iget-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mContentView:Landroid/view/View;
sget v1, Lcom/sdk/orion/lib/xb/R$id;->et_xiaoya_say_input:I
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/EditText;
iput-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mSayInput:Landroid/widget/EditText;
iget-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mSayInput:Landroid/widget/EditText;
iget-object v1, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mCommandInputWatcher:Landroid/text/TextWatcher;
invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V
iget-object v0, p0, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->mSoundLayout:Landroid/widget/LinearLayout;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V
return-void
.end method
# virtual methods
.method protected initBackFillData()V
.registers 1
invoke-super {p0}, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepFragment;->initBackFillData()V
invoke-direct {p0}, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->initSayBackFillData()V
return-void
.end method
.method protected setCommandBuildStepUI(I)V
.registers 2
invoke-super {p0, p1}, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepFragment;->setCommandBuildStepUI(I)V
invoke-direct {p0}, Lcom/sdk/orion/lib/xb/fragment/OrionCommandBuildThirdStepSayFragment;->setCommandBuildStepSayUI()V
return-void
.end method