.class public Lcom/moji/dialog/control/MJDialogSceneControl;
.super Lcom/moji/dialog/control/AbsDialogControl;
.source "MJDialogSceneControl.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/dialog/control/MJDialogSceneControl$SceneVipOpenCallback;,
        Lcom/moji/dialog/control/MJDialogSceneControl$Builder;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/dialog/control/AbsDialogControl<",
        "Lcom/moji/dialog/control/MJDialogSceneControl$Builder;",
        ">;"
    }
.end annotation


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

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/ImageView;

.field private e:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Lcom/moji/dialog/control/MJDialogSceneControl$Builder;)V
    .locals 0

    .line 28
    invoke-direct {p0, p1}, Lcom/moji/dialog/control/AbsDialogControl;-><init>(Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;)V

    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    .line 33
    sget v0, Lcom/moji/widget/R$layout;->dialog_scene_toast:I

    return v0
.end method

.method protected a(Lcom/moji/dialog/MJDialog;Landroid/view/View;)V
    .locals 0

    .line 38
    sget p1, Lcom/moji/widget/R$id;->tv_open_membership:I

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

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->b:Landroid/widget/TextView;

    .line 39
    sget p1, Lcom/moji/widget/R$id;->tv_outtime_warn:I

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

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->e:Landroid/widget/TextView;

    .line 40
    sget p1, Lcom/moji/widget/R$id;->tv_no_thanks:I

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

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->c:Landroid/widget/TextView;

    .line 41
    sget p1, Lcom/moji/widget/R$id;->iv_close_warn:I

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

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->d:Landroid/widget/ImageView;

    .line 43
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->a:Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    check-cast p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;

    iget-object p1, p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;->t:Ljava/lang/String;

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

    move-result p1

    if-nez p1, :cond_0

    .line 44
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->e:Landroid/widget/TextView;

    iget-object p2, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->a:Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    check-cast p2, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;

    iget-object p2, p2, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;->t:Ljava/lang/String;

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

    .line 46
    :cond_0
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->a:Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    check-cast p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;

    iget-object p1, p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;->j:Ljava/lang/CharSequence;

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

    move-result p1

    if-nez p1, :cond_1

    .line 47
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->b:Landroid/widget/TextView;

    iget-object p2, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->a:Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    check-cast p2, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;

    iget-object p2, p2, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;->j:Ljava/lang/CharSequence;

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

    .line 49
    :cond_1
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->a:Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    check-cast p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;

    iget-object p1, p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;->k:Ljava/lang/CharSequence;

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

    move-result p1

    if-nez p1, :cond_2

    .line 50
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->c:Landroid/widget/TextView;

    iget-object p2, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->a:Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    check-cast p2, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;

    iget-object p2, p2, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;->k:Ljava/lang/CharSequence;

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

    .line 51
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->c:Landroid/widget/TextView;

    invoke-virtual {p1}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;

    move-result-object p1

    const/16 p2, 0x8

    invoke-virtual {p1, p2}, Landroid/text/TextPaint;->setFlags(I)V

    .line 53
    :cond_2
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->a:Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    check-cast p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;

    invoke-static {p1}, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;->a(Lcom/moji/dialog/control/MJDialogSceneControl$Builder;)I

    move-result p1

    if-eqz p1, :cond_3

    .line 54
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->d:Landroid/widget/ImageView;

    iget-object p2, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->a:Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    check-cast p2, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;

    invoke-static {p2}, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;->a(Lcom/moji/dialog/control/MJDialogSceneControl$Builder;)I

    move-result p2

    invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 56
    :cond_3
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->b:Landroid/widget/TextView;

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

    .line 57
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->c:Landroid/widget/TextView;

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

    .line 58
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->d:Landroid/widget/ImageView;

    invoke-virtual {p1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 63
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    .line 64
    sget v0, Lcom/moji/widget/R$id;->tv_open_membership:I

    if-ne p1, v0, :cond_0

    .line 65
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->a:Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    check-cast p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;

    iget-object p1, p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;->a:Lcom/moji/dialog/control/MJDialogSceneControl$SceneVipOpenCallback;

    if-eqz p1, :cond_3

    .line 66
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->a:Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    check-cast p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;

    iget-object p1, p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;->a:Lcom/moji/dialog/control/MJDialogSceneControl$SceneVipOpenCallback;

    invoke-virtual {p0}, Lcom/moji/dialog/control/MJDialogSceneControl;->e()Lcom/moji/dialog/MJDialog;

    move-result-object v0

    invoke-interface {p1, v0}, Lcom/moji/dialog/control/MJDialogSceneControl$SceneVipOpenCallback;->a(Lcom/moji/dialog/MJDialog;)V

    goto :goto_0

    .line 69
    :cond_0
    sget v0, Lcom/moji/widget/R$id;->tv_no_thanks:I

    if-ne p1, v0, :cond_2

    .line 70
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->a:Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    check-cast p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;

    iget-object p1, p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;->a:Lcom/moji/dialog/control/MJDialogSceneControl$SceneVipOpenCallback;

    if-eqz p1, :cond_1

    .line 71
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->a:Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    check-cast p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;

    iget-object p1, p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;->a:Lcom/moji/dialog/control/MJDialogSceneControl$SceneVipOpenCallback;

    invoke-virtual {p0}, Lcom/moji/dialog/control/MJDialogSceneControl;->e()Lcom/moji/dialog/MJDialog;

    move-result-object v0

    invoke-interface {p1, v0}, Lcom/moji/dialog/control/MJDialogSceneControl$SceneVipOpenCallback;->b(Lcom/moji/dialog/MJDialog;)V

    goto :goto_0

    .line 73
    :cond_1
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->a:Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    check-cast p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;

    iget-boolean p1, p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;->i:Z

    if-eqz p1, :cond_3

    .line 74
    invoke-virtual {p0}, Lcom/moji/dialog/control/MJDialogSceneControl;->e()Lcom/moji/dialog/MJDialog;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/dialog/MJDialog;->dismiss()V

    goto :goto_0

    .line 76
    :cond_2
    sget v0, Lcom/moji/widget/R$id;->iv_close_warn:I

    if-ne p1, v0, :cond_3

    .line 77
    iget-object p1, p0, Lcom/moji/dialog/control/MJDialogSceneControl;->a:Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    check-cast p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;

    iget-boolean p1, p1, Lcom/moji/dialog/control/MJDialogSceneControl$Builder;->i:Z

    if-eqz p1, :cond_3

    .line 78
    invoke-virtual {p0}, Lcom/moji/dialog/control/MJDialogSceneControl;->e()Lcom/moji/dialog/MJDialog;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/dialog/MJDialog;->dismiss()V

    :cond_3
    :goto_0
    return-void
.end method
