.class public Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;
.super Lcom/moji/mjad/common/view/creater/AbsAdVideoViewCreater;
.source "AdStyleEightCreater.java"


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

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

    return-void
.end method


# virtual methods
.method public synthetic a(Ljava/lang/Object;Ljava/lang/String;)Landroid/view/View;
    .locals 0

    .line 19
    check-cast p1, Lcom/moji/mjad/common/data/AdCommon;

    invoke-virtual {p0, p1, p2}, Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;->g(Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;)Landroid/view/View;

    move-result-object p1

    return-object p1
.end method

.method protected a(Landroid/view/View;)V
    .locals 1

    .line 34
    sget v0, Lcom/moji/mjad/R$id;->video_ad_view:I

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

    move-result-object v0

    check-cast v0, Lcom/moji/mjad/base/view/videoview/AdVideoView;

    iput-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;->a:Lcom/moji/mjad/base/view/videoview/AdVideoView;

    .line 35
    sget v0, Lcom/moji/mjad/R$id;->abs_ad_mask_view:I

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

    move-result-object v0

    check-cast v0, Lcom/moji/mjad/view/AdCommonMaskView;

    iput-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;->v:Lcom/moji/mjad/view/IAbstractMask;

    .line 36
    sget v0, Lcom/moji/mjad/R$id;->v_bg:I

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

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;->c:Landroid/widget/ImageView;

    return-void
.end method

.method public a(Z)V
    .locals 1

    .line 40
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;->a:Lcom/moji/mjad/base/view/videoview/AdVideoView;

    if-eqz v0, :cond_0

    .line 41
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;->a:Lcom/moji/mjad/base/view/videoview/AdVideoView;

    invoke-virtual {v0, p1}, Lcom/moji/mjad/base/view/videoview/AdVideoView;->a(Z)V

    :cond_0
    return-void
.end method

.method public f()V
    .locals 1

    .line 46
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;->a:Lcom/moji/mjad/base/view/videoview/AdVideoView;

    if-eqz v0, :cond_0

    .line 47
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;->a:Lcom/moji/mjad/base/view/videoview/AdVideoView;

    invoke-virtual {v0}, Lcom/moji/mjad/base/view/videoview/AdVideoView;->f()V

    :cond_0
    return-void
.end method

.method public g(Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;)Landroid/view/View;
    .locals 1

    .line 26
    sget v0, Lcom/moji/mjad/R$layout;->moji_ad_style_eight:I

    invoke-virtual {p0, v0}, Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;->a(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;->n:Landroid/view/View;

    .line 27
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;->n:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;->a(Landroid/view/View;)V

    .line 28
    invoke-virtual {p0, p1, p2}, Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;->a(Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;)V

    .line 29
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleEightCreater;->n:Landroid/view/View;

    return-object p1
.end method
