OrionCommandBuildThirdStepSayFragment$1.smali
.class Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment$1;
.super Ljava/lang/Object;
# interfaces
.implements Landroid/text/TextWatcher;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;
# direct methods
.method constructor <init>(Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;)V
.registers 2
iput-object p1, p0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment$1;->this$0:Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
.registers 4
iget-object v0, p0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment$1;->this$0:Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;
iget-object v0, v0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;->mCommandBuildInterface:Lcom/sdk/orion/lib/command/OrionCommandBuild;
if-nez v0, :cond_7
:goto_6
return-void
:cond_7
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_41
iget-object v0, p0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment$1;->this$0:Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;
iget-object v0, v0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;->mSayInput: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
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
if-lez v0, :cond_41
const-string/jumbo v0, "\n"
iget-object v1, p0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment$1;->this$0:Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;
iget-object v1, v1, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;->mSayInput:Landroid/widget/EditText;
invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->toString()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_41
iget-object v0, p0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment$1;->this$0:Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;
iget-object v0, v0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;->mCommandBuildInterface:Lcom/sdk/orion/lib/command/OrionCommandBuild;
const/4 v1, 0x1
invoke-interface {v0, v1}, Lcom/sdk/orion/lib/command/OrionCommandBuild;->setNextStatus(Z)V
goto :goto_6
:cond_41
iget-object v0, p0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment$1;->this$0:Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;
iget-object v0, v0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;->mCommandBuildInterface:Lcom/sdk/orion/lib/command/OrionCommandBuild;
const/4 v1, 0x0
invoke-interface {v0, v1}, Lcom/sdk/orion/lib/command/OrionCommandBuild;->setNextStatus(Z)V
goto :goto_6
.end method
.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
.registers 7
if-eqz p1, :cond_1d
invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
if-gt v0, p2, :cond_1d
iget-object v0, p0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment$1;->this$0:Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;
invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v1
# setter for: Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;->mInputTmp:Ljava/lang/String;
invoke-static {v0, v1}, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;->access$002(Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;Ljava/lang/String;)Ljava/lang/String;
:cond_1d
return-void
.end method
.method public onTextChanged(Ljava/lang/CharSequence;III)V
.registers 7
iget-object v0, p0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment$1;->this$0:Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;
iget-object v0, v0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;->mSayInput: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
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
if-eqz v0, :cond_4d
if-nez p3, :cond_4d
invoke-interface {p1, p2}, Ljava/lang/CharSequence;->charAt(I)C
move-result v0
invoke-static {v0}, Lcom/sdk/orion/ui/baselibrary/utils/InputFilter;->isEmojiCharacter(C)Z
move-result v0
if-eqz v0, :cond_4d
iget-object v0, p0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment$1;->this$0:Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;
iget-object v0, v0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;->mSayInput:Landroid/widget/EditText;
iget-object v1, p0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment$1;->this$0:Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;
# getter for: Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;->mInputTmp:Ljava/lang/String;
invoke-static {v1}, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;->access$000(Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;)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/command/fragment/OrionCommandBuildThirdStepSayFragment$1;->this$0:Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;
iget-object v0, v0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;->mSayInput:Landroid/widget/EditText;
iget-object v1, p0, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment$1;->this$0:Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;
# getter for: Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;->mInputTmp:Ljava/lang/String;
invoke-static {v1}, Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;->access$000(Lcom/sdk/orion/lib/command/fragment/OrionCommandBuildThirdStepSayFragment;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/String;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v1
invoke-virtual {v0, v1}, Landroid/widget/EditText;->setSelection(I)V
sget v0, Lcom/sdk/orion/lib/command/R$string;->orion_sdk_input_emojy_hint:I
invoke-static {v0}, Lcom/sdk/orion/ui/baselibrary/utils/ToastUtils;->showToast(I)V
:cond_4d
return-void
.end method