.class public Lcom/moji/mjad/common/view/multi/MultiAdView;
.super Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;
.source "MultiAdView.java"

# interfaces
.implements Lcom/moji/mjad/common/view/multi/interfaces/IMojiAd;
.implements Lcom/moji/mjad/common/view/multi/interfaces/IMultiAdViewShownListener;


# instance fields
.field private c:Landroid/view/View;

.field private d:Lcom/moji/mjad/common/view/multi/interfaces/IMojiAdPresenter;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 36
    invoke-direct {p0, p1}, Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;-><init>(Landroid/content/Context;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    .line 40
    invoke-direct {p0, p1, p2}, Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 44
    invoke-direct {p0, p1, p2, p3}, Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/mjad/common/config/AdCommonParamsBuilder;)V
    .locals 0

    .line 49
    invoke-virtual {p0, p1}, Lcom/moji/mjad/common/view/multi/MultiAdView;->b(Lcom/moji/mjad/common/config/AdCommonParamsBuilder;)V

    return-void
.end method

.method public a(Lcom/moji/mjad/common/config/AdCommonParamsBuilder;Ljava/lang/String;)V
    .locals 1

    if-eqz p1, :cond_1

    .line 73
    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 76
    :cond_0
    iput-object p1, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    .line 77
    invoke-virtual {p1}, Lcom/moji/mjad/common/config/AdCommonParamsBuilder;->b()Ljava/util/List;

    move-result-object p1

    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0, p2}, Lcom/moji/mjad/common/view/multi/MultiAdView;->a(Ljava/util/List;Lcom/moji/mjad/view/IAbstractMask;Ljava/lang/String;)V

    return-void

    :cond_1
    :goto_0
    return-void
.end method

.method public a(Lcom/moji/mjad/common/view/creater/AbsAdStyleViewCreater;ILjava/lang/String;)V
    .locals 1

    const-string p1, "zdxicon555"

    .line 154
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "  MultiAdView   onVisible  height-- "

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    invoke-static {p1, p3}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 155
    iget-object p1, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    if-nez p1, :cond_0

    const/16 p1, 0x8

    .line 156
    invoke-virtual {p0, p1}, Lcom/moji/mjad/common/view/multi/MultiAdView;->setVisibility(I)V

    return-void

    .line 159
    :cond_0
    invoke-virtual {p0}, Lcom/moji/mjad/common/view/multi/MultiAdView;->getVisibility()I

    move-result p1

    if-eqz p1, :cond_1

    .line 160
    new-instance p1, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;

    invoke-direct {p1}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;-><init>()V

    iget-object p3, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    .line 161
    invoke-virtual {p3}, Lcom/moji/mjad/common/config/AdCommonParamsBuilder;->e()Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    move-result-object p3

    invoke-virtual {p1, p3}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->a(Lcom/moji/launchserver/AdCommonInterface$AdPosition;)Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;

    move-result-object p1

    .line 162
    invoke-virtual {p1, p2}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->b(I)Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;

    move-result-object p1

    const/4 p2, 0x0

    .line 163
    invoke-virtual {p1, p2}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->a(I)Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;

    move-result-object p1

    iget-object p2, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->c:Landroid/view/View;

    .line 164
    invoke-virtual {p1, p2}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->a(Landroid/view/View;)Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;

    move-result-object p1

    .line 165
    invoke-virtual {p1}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->a()Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->a()V

    :cond_1
    return-void
.end method

.method public a(Lcom/moji/mjad/enumdata/MojiAdGoneType;ILjava/lang/String;)V
    .locals 2

    const-string p3, "zdxicon"

    .line 137
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "  MultiAdView   onGone  height-- "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p3, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p3, 0x0

    .line 138
    iput-object p3, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->d:Lcom/moji/mjad/common/view/multi/interfaces/IMojiAdPresenter;

    .line 139
    iget-object p3, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    const/16 v0, 0x8

    if-eqz p3, :cond_0

    iget-object p3, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->c:Landroid/view/View;

    if-nez p3, :cond_1

    .line 140
    :cond_0
    invoke-virtual {p0, v0}, Lcom/moji/mjad/common/view/multi/MultiAdView;->setVisibility(I)V

    .line 142
    :cond_1
    new-instance p3, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;

    invoke-direct {p3}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;-><init>()V

    iget-object v1, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    .line 143
    invoke-virtual {v1}, Lcom/moji/mjad/common/config/AdCommonParamsBuilder;->e()Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    move-result-object v1

    invoke-virtual {p3, v1}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->a(Lcom/moji/launchserver/AdCommonInterface$AdPosition;)Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;

    move-result-object p3

    .line 144
    invoke-virtual {p3, p2}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->b(I)Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;

    move-result-object p2

    .line 145
    invoke-virtual {p2, p1}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->a(Lcom/moji/mjad/enumdata/MojiAdGoneType;)Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;

    move-result-object p1

    .line 146
    invoke-virtual {p1, v0}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->a(I)Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;

    move-result-object p1

    iget-object p2, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->c:Landroid/view/View;

    .line 147
    invoke-virtual {p1, p2}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->a(Landroid/view/View;)Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;

    move-result-object p1

    .line 148
    invoke-virtual {p1}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->a()Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->a()V

    return-void
.end method

.method public a(Ljava/util/List;Lcom/moji/mjad/view/IAbstractMask;Ljava/lang/String;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/mjad/common/data/AdCommon;",
            ">;",
            "Lcom/moji/mjad/view/IAbstractMask;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    if-eqz p1, :cond_7

    .line 82
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p2

    if-nez p2, :cond_0

    goto :goto_4

    .line 86
    :cond_0
    iget-object p2, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->d:Lcom/moji/mjad/common/view/multi/interfaces/IMojiAdPresenter;

    if-nez p2, :cond_1

    .line 87
    new-instance p2, Lcom/moji/mjad/common/view/multi/builder/MultiAdViewPresenter;

    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->a:Landroid/content/Context;

    invoke-direct {p2, v0, p1}, Lcom/moji/mjad/common/view/multi/builder/MultiAdViewPresenter;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object p2, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->d:Lcom/moji/mjad/common/view/multi/interfaces/IMojiAdPresenter;

    .line 89
    :cond_1
    iget-object p2, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->d:Lcom/moji/mjad/common/view/multi/interfaces/IMojiAdPresenter;

    instance-of p2, p2, Lcom/moji/mjad/common/view/multi/builder/MultiAdViewPresenter;

    if-eqz p2, :cond_3

    .line 90
    iget-object p2, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->d:Lcom/moji/mjad/common/view/multi/interfaces/IMojiAdPresenter;

    check-cast p2, Lcom/moji/mjad/common/view/multi/builder/MultiAdViewPresenter;

    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    invoke-virtual {v0}, Lcom/moji/mjad/common/config/AdCommonParamsBuilder;->a()Lcom/moji/mjad/common/listener/AdViewCloseListener;

    move-result-object v0

    goto :goto_0

    :cond_2
    const/4 v0, 0x0

    :goto_0
    invoke-virtual {p2, v0}, Lcom/moji/mjad/common/view/multi/builder/MultiAdViewPresenter;->a(Lcom/moji/mjad/common/listener/AdViewCloseListener;)V

    .line 92
    :cond_3
    iget-object p2, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->d:Lcom/moji/mjad/common/view/multi/interfaces/IMojiAdPresenter;

    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    .line 93
    invoke-virtual {v0}, Lcom/moji/mjad/common/config/AdCommonParamsBuilder;->f()Lcom/moji/mjad/common/view/multi/AbsMultiViewVisibleListenerImpl;

    move-result-object v0

    if-nez v0, :cond_4

    goto :goto_1

    :cond_4
    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    invoke-virtual {v0}, Lcom/moji/mjad/common/config/AdCommonParamsBuilder;->f()Lcom/moji/mjad/common/view/multi/AbsMultiViewVisibleListenerImpl;

    move-result-object v0

    goto :goto_2

    :cond_5
    :goto_1
    move-object v0, p0

    .line 92
    :goto_2
    invoke-interface {p2, p1, v0, p3}, Lcom/moji/mjad/common/view/multi/interfaces/IMojiAdPresenter;->a(Ljava/util/List;Lcom/moji/mjad/common/view/multi/interfaces/IMultiVisibilityObserver;Ljava/lang/String;)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->c:Landroid/view/View;

    .line 95
    iget-object p1, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->c:Landroid/view/View;

    if-eqz p1, :cond_6

    .line 96
    invoke-virtual {p0}, Lcom/moji/mjad/common/view/multi/MultiAdView;->removeAllViews()V

    .line 97
    iget-object p1, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->c:Landroid/view/View;

    invoke-virtual {p0, p1}, Lcom/moji/mjad/common/view/multi/MultiAdView;->addView(Landroid/view/View;)V

    goto :goto_3

    .line 100
    :cond_6
    sget-object p1, Lcom/moji/mjad/enumdata/MojiAdGoneType;->GONE_WITH_NORMAL:Lcom/moji/mjad/enumdata/MojiAdGoneType;

    invoke-virtual {p0}, Lcom/moji/mjad/common/view/multi/MultiAdView;->getHeight()I

    move-result p2

    invoke-virtual {p0, p1, p2, p3}, Lcom/moji/mjad/common/view/multi/MultiAdView;->a(Lcom/moji/mjad/enumdata/MojiAdGoneType;ILjava/lang/String;)V

    :goto_3
    return-void

    .line 83
    :cond_7
    :goto_4
    sget-object p1, Lcom/moji/mjad/enumdata/MojiAdGoneType;->GONE_WITH_NORMAL:Lcom/moji/mjad/enumdata/MojiAdGoneType;

    invoke-virtual {p0}, Lcom/moji/mjad/common/view/multi/MultiAdView;->getHeight()I

    move-result p2

    invoke-virtual {p0, p1, p2, p3}, Lcom/moji/mjad/common/view/multi/MultiAdView;->a(Lcom/moji/mjad/enumdata/MojiAdGoneType;ILjava/lang/String;)V

    return-void
.end method

.method public a(Z)V
    .locals 1

    .line 118
    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->d:Lcom/moji/mjad/common/view/multi/interfaces/IMojiAdPresenter;

    if-eqz v0, :cond_0

    .line 119
    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->d:Lcom/moji/mjad/common/view/multi/interfaces/IMojiAdPresenter;

    invoke-interface {v0, p1}, Lcom/moji/mjad/common/view/multi/interfaces/IMojiAdPresenter;->a(Z)V

    :cond_0
    return-void
.end method

.method public a(ZZZZ)V
    .locals 1

    .line 111
    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->d:Lcom/moji/mjad/common/view/multi/interfaces/IMojiAdPresenter;

    if-eqz v0, :cond_0

    .line 112
    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->d:Lcom/moji/mjad/common/view/multi/interfaces/IMojiAdPresenter;

    invoke-interface {v0, p1, p2, p3, p4}, Lcom/moji/mjad/common/view/multi/interfaces/IMojiAdPresenter;->a(ZZZZ)V

    :cond_0
    return-void
.end method

.method public b(Lcom/moji/mjad/common/config/AdCommonParamsBuilder;)V
    .locals 2

    if-eqz p1, :cond_0

    .line 54
    invoke-virtual {p1}, Lcom/moji/mjad/common/config/AdCommonParamsBuilder;->e()Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->a:Landroid/content/Context;

    if-eqz v0, :cond_0

    .line 55
    iput-object p1, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    .line 56
    new-instance v0, Lcom/moji/mjad/MojiAdRequest;

    iget-object v1, p0, Lcom/moji/mjad/common/view/multi/MultiAdView;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/moji/mjad/MojiAdRequest;-><init>(Landroid/content/Context;)V

    new-instance v1, Lcom/moji/mjad/common/view/multi/MultiAdView$1;

    invoke-direct {v1, p0}, Lcom/moji/mjad/common/view/multi/MultiAdView$1;-><init>(Lcom/moji/mjad/common/view/multi/MultiAdView;)V

    invoke-virtual {v0, p1, v1}, Lcom/moji/mjad/MojiAdRequest;->a(Lcom/moji/mjad/common/config/AdCommonParamsBuilder;Lcom/moji/mjad/common/CommonMultiAdCallback;)V

    :cond_0
    return-void
.end method

.method public setParentView(Landroid/view/ViewGroup;)V
    .locals 0

    return-void
.end method
