.class public Lcom/moji/mjad/common/view/FeedAdView;
.super Lcom/moji/mjad/common/view/CommonAdView;
.source "FeedAdView.java"


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

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

    return-void
.end method

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

    .line 21
    invoke-direct {p0, p1, p2}, Lcom/moji/mjad/common/view/CommonAdView;-><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 25
    invoke-direct {p0, p1, p2, p3}, Lcom/moji/mjad/common/view/CommonAdView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/mjad/common/data/AdCommon;Lcom/moji/mjad/common/listener/AbsCommonViewVisibleListenerImpl;Ljava/lang/String;)V
    .locals 2

    if-eqz p1, :cond_1

    .line 29
    iget-object v0, p0, Lcom/moji/mjad/common/view/FeedAdView;->a:Landroid/content/Context;

    if-eqz v0, :cond_1

    .line 30
    iget-object v0, p0, Lcom/moji/mjad/common/view/FeedAdView;->d:Lcom/moji/mjad/common/control/CommonAdStyleViewControl;

    if-nez v0, :cond_0

    .line 31
    new-instance v0, Lcom/moji/mjad/common/control/CommonAdStyleViewControl;

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

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

    iput-object v0, p0, Lcom/moji/mjad/common/view/FeedAdView;->d:Lcom/moji/mjad/common/control/CommonAdStyleViewControl;

    .line 33
    iget-object v0, p0, Lcom/moji/mjad/common/view/FeedAdView;->d:Lcom/moji/mjad/common/control/CommonAdStyleViewControl;

    invoke-virtual {v0, p0}, Lcom/moji/mjad/common/control/CommonAdStyleViewControl;->setOnAdViewVisibleListener(Lcom/moji/mjad/common/listener/AdViewShownListener;)V

    if-eqz p2, :cond_0

    .line 36
    iget-object v0, p0, Lcom/moji/mjad/common/view/FeedAdView;->d:Lcom/moji/mjad/common/control/CommonAdStyleViewControl;

    invoke-virtual {v0, p2}, Lcom/moji/mjad/common/control/CommonAdStyleViewControl;->setOnAdViewVisibleListener(Lcom/moji/mjad/common/listener/AdViewShownListener;)V

    .line 40
    :cond_0
    iget-object p2, p0, Lcom/moji/mjad/common/view/FeedAdView;->d:Lcom/moji/mjad/common/control/CommonAdStyleViewControl;

    invoke-virtual {p2, p0}, Lcom/moji/mjad/common/control/CommonAdStyleViewControl;->setIResetIntentParams(Lcom/moji/mjad/base/IResetIntentParams;)V

    .line 41
    iget-object p2, p0, Lcom/moji/mjad/common/view/FeedAdView;->d:Lcom/moji/mjad/common/control/CommonAdStyleViewControl;

    invoke-virtual {p2, p1, p3}, Lcom/moji/mjad/common/control/CommonAdStyleViewControl;->loadAd(Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    const/16 p1, 0x8

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

    :goto_0
    return-void
.end method
