OrionFindPhoneSkill.smali

.class public Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;
.super Lcom/sdk/orion/lib/skillbase/subskill/OrionSimpleSkill;


# static fields
.field public static final KEY_DATA:Ljava/lang/String; = "key_data"

.field private static final REQUEST_CODE:I = 0x64


# instance fields
.field private mActionTv:Landroid/widget/TextView;

.field private mIsExpost:Z

.field private mPhoneNum:Ljava/lang/String;

.field private mPhoneNumTv:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .registers 2

    invoke-direct {p0}, Lcom/sdk/orion/lib/skillbase/subskill/OrionSimpleSkill;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mIsExpost:Z

    return-void
.end method

.method static synthetic access$000(Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;)Ljava/lang/String;
    .registers 2

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mPhoneNum:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$002(Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;Ljava/lang/String;)Ljava/lang/String;
    .registers 2

    iput-object p1, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mPhoneNum:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$100(Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;)Lcom/sdk/orion/bean/SkillListBean$DataBean;
    .registers 2

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mSkill:Lcom/sdk/orion/bean/SkillListBean$DataBean;

    return-object v0
.end method

.method static synthetic access$200(Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;)Z
    .registers 2

    iget-boolean v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mIsExpost:Z

    return v0
.end method

.method static synthetic access$300(Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;)Lcom/sdk/orion/bean/SkillListBean$DataBean;
    .registers 2

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mSkill:Lcom/sdk/orion/bean/SkillListBean$DataBean;

    return-object v0
.end method

.method static synthetic access$400(Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;)Lcom/sdk/orion/bean/SkillListBean$DataBean;
    .registers 2

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mSkill:Lcom/sdk/orion/bean/SkillListBean$DataBean;

    return-object v0
.end method

.method static synthetic access$500(Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;)Lcom/sdk/orion/bean/SkillListBean$DataBean;
    .registers 2

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mSkill:Lcom/sdk/orion/bean/SkillListBean$DataBean;

    return-object v0
.end method

.method static synthetic access$600(Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;)V
    .registers 1

    invoke-direct {p0}, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->setPhoneText()V

    return-void
.end method

.method private setPhoneText()V
    .registers 5

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mPhoneNum:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2e

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mActivity:Landroid/app/Activity;

    sget v1, Lcom/sdk/orion/lib/skill/others/R$string;->orion_sdk_find_phone_current_num:I

    invoke-virtual {v0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/Object;

    iget-object v2, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mPhoneNum:Ljava/lang/String;

    aput-object v2, v1, v3

    invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mPhoneNumTv:Landroid/widget/TextView;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v1, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mPhoneNumTv:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mActionTv:Landroid/widget/TextView;

    sget v1, Lcom/sdk/orion/lib/skill/others/R$string;->orion_sdk_find_phone_modify:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    :goto_2d
    return-void

    :cond_2e
    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mPhoneNumTv:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mActionTv:Landroid/widget/TextView;

    sget v1, Lcom/sdk/orion/lib/skill/others/R$string;->orion_sdk_find_phone_set:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    goto :goto_2d
.end method


# virtual methods
.method public getContainerView()Landroid/view/View;
    .registers 4

    sget-object v0, Lcom/sdk/orion/ui/baselibrary/BaseApp;->mContext:Landroid/content/Context;

    sget v1, Lcom/sdk/orion/lib/skill/others/R$layout;->orion_sdk_skill_find_phone:I

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public initExtraData()V
    .registers 3

    new-instance v0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill$2;

    invoke-direct {v0, p0}, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill$2;-><init>(Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;)V

    iget-boolean v1, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mIsExpost:Z

    if-nez v1, :cond_11

    invoke-static {}, Lcom/sdk/orion/orion/OrionClient;->getInstance()Lcom/sdk/orion/orion/OrionClient;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/sdk/orion/orion/OrionClient;->getFindPhoneNumber(Lcom/sdk/orion/callback/JsonCallback;)V

    :goto_10
    return-void

    :cond_11
    invoke-static {}, Lcom/sdk/orion/orion/OrionClient;->getInstance()Lcom/sdk/orion/orion/OrionClient;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/sdk/orion/orion/OrionClient;->getExpostPhoneNumber(Lcom/sdk/orion/callback/JsonCallback;)V

    goto :goto_10
.end method

.method public initView(Landroid/app/Activity;)V
    .registers 4

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mBundle:Landroid/os/Bundle;

    if-eqz v0, :cond_f

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mBundle:Landroid/os/Bundle;

    const-string/jumbo v1, "args_boolean"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mIsExpost:Z

    :cond_f
    sget v0, Lcom/sdk/orion/lib/skill/others/R$id;->bt_action:I

    invoke-virtual {p1, v0}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mActionTv:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mActionTv:Landroid/widget/TextView;

    new-instance v1, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill$1;

    invoke-direct {v1, p0, p1}, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill$1;-><init>(Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;Landroid/app/Activity;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mActionTv:Landroid/widget/TextView;

    sget v1, Lcom/sdk/orion/lib/skill/others/R$attr;->orion_sdk_btn_selector_drawable:I

    invoke-static {p1, v1}, Lcom/sdk/orion/ui/baselibrary/utils/AttrUtils;->getDrawableAttr(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/sdk/orion/ui/baselibrary/utils/CompatUtils;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V

    sget v0, Lcom/sdk/orion/lib/skill/others/R$id;->tv_current_num:I

    invoke-virtual {p1, v0}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mPhoneNumTv:Landroid/widget/TextView;

    return-void
.end method

.method public isContainerViewAbove()Z
    .registers 2

    const/4 v0, 0x1

    return v0
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .registers 6

    const/16 v0, 0x64

    if-ne p1, v0, :cond_1c

    if-eqz p3, :cond_1c

    const-string/jumbo v0, "cellphone"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_1c

    iput-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mPhoneNum:Ljava/lang/String;

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mPhoneNumTv:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mPhoneNum:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_1c
    return-void
.end method

.method public onResume(Landroid/app/Activity;)V
    .registers 3

    invoke-super {p0, p1}, Lcom/sdk/orion/lib/skillbase/subskill/OrionSimpleSkill;->onResume(Landroid/app/Activity;)V

    iget-object v0, p0, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->mPhoneNum:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_e

    invoke-virtual {p0}, Lcom/sdk/orion/lib/skill/others/subskill/OrionFindPhoneSkill;->initExtraData()V

    :cond_e
    return-void
.end method