.class Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;
.super Ljava/lang/Object;
.source "AbsAdGDTVideoCreater.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->a(Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Z

.field final synthetic b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;


# direct methods
.method constructor <init>(Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;Z)V
    .locals 0

    .line 160
    iput-object p1, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    iput-boolean p2, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->a:Z

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

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    const-string v0, "zdxgdtvideo"

    .line 163
    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, " videoAdControl   play-- "

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

    iget-boolean v2, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->a:Z

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

    const-string v2, "      "

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

    iget-object v2, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    iget-object v2, v2, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->g:Lcom/qq/e/ads/nativ/MediaView;

    if-nez v2, :cond_0

    const-string v2, "mMediaView==null"

    goto :goto_0

    :cond_0
    const-string v2, ""

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

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

    move-result-object v1

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

    .line 164
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    iget-object v0, v0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->g:Lcom/qq/e/ads/nativ/MediaView;

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    invoke-static {v0}, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->i(Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;)Lcom/moji/mjad/common/listener/AdViewShownListener;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 165
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    invoke-static {v0}, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->j(Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;)Lcom/moji/mjad/common/listener/AdViewShownListener;

    move-result-object v0

    sget-object v1, Lcom/moji/mjad/enumdata/MojiAdGoneType;->GONE_WITH_NORMAL:Lcom/moji/mjad/enumdata/MojiAdGoneType;

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Lcom/moji/mjad/common/listener/AdViewShownListener;->onAdViewGone(Lcom/moji/mjad/enumdata/MojiAdGoneType;Ljava/lang/String;)V

    const-string v0, "zdxgdtvideo"

    .line 166
    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, " videoAdControl   return of mediaview ==null-- "

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

    iget-boolean v2, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->a:Z

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

    const-string v2, "      "

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

    iget-object v2, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    iget-object v2, v2, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->g:Lcom/qq/e/ads/nativ/MediaView;

    if-nez v2, :cond_1

    const-string v2, "mMediaView==null"

    goto :goto_1

    :cond_1
    const-string v2, ""

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

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

    move-result-object v1

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

    return-void

    .line 169
    :cond_2
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    invoke-static {v0}, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->k(Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;)Lcom/moji/mjad/common/data/AdCommon;

    move-result-object v0

    if-eqz v0, :cond_8

    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    invoke-static {v0}, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->l(Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;)Lcom/moji/mjad/common/data/AdCommon;

    move-result-object v0

    iget-object v0, v0, Lcom/moji/mjad/common/data/AdCommon;->gdtMediaAd:Lcom/qq/e/ads/nativ/NativeMediaADData;

    if-eqz v0, :cond_8

    .line 170
    iget-boolean v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->a:Z

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    invoke-static {v0}, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->m(Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;)Lcom/moji/mjad/common/data/AdCommon;

    move-result-object v0

    iget-object v0, v0, Lcom/moji/mjad/common/data/AdCommon;->gdtMediaAd:Lcom/qq/e/ads/nativ/NativeMediaADData;

    invoke-interface {v0}, Lcom/qq/e/ads/nativ/NativeMediaADData;->getAdPatternType()I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_7

    .line 173
    invoke-static {}, Lcom/moji/tool/DeviceTool;->D()Z

    move-result v0

    if-nez v0, :cond_3

    sget-boolean v0, Lcom/moji/mjad/util/AdUtil;->e:Z

    if-nez v0, :cond_3

    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    iget-object v0, v0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->C:Lcom/moji/mjad/view/AdLastFrameView;

    if-eqz v0, :cond_3

    .line 175
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    iget-object v0, v0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->C:Lcom/moji/mjad/view/AdLastFrameView;

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    iget-object v2, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    iget-object v2, v2, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->g:Lcom/qq/e/ads/nativ/MediaView;

    invoke-virtual {v2}, Lcom/qq/e/ads/nativ/MediaView;->getWidth()I

    move-result v2

    iget-object v3, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    iget-object v3, v3, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->g:Lcom/qq/e/ads/nativ/MediaView;

    invoke-virtual {v3}, Lcom/qq/e/ads/nativ/MediaView;->getHeight()I

    move-result v3

    invoke-direct {v1, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Lcom/moji/mjad/view/AdLastFrameView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 176
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    iget-object v0, v0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->C:Lcom/moji/mjad/view/AdLastFrameView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/moji/mjad/view/AdLastFrameView;->setVisibility(I)V

    .line 177
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    iget-object v0, v0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->C:Lcom/moji/mjad/view/AdLastFrameView;

    new-instance v1, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3$1;

    invoke-direct {v1, p0}, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3$1;-><init>(Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;)V

    invoke-virtual {v0, v1}, Lcom/moji/mjad/view/AdLastFrameView;->a(Lcom/moji/mjad/view/AdLastFrameView$IGoOnPlayingVideo;)V

    return-void

    .line 187
    :cond_3
    invoke-static {}, Lcom/moji/tool/DeviceTool;->D()Z

    move-result v0

    const/16 v1, 0x8

    if-nez v0, :cond_5

    sget-boolean v0, Lcom/moji/mjad/util/AdUtil;->e:Z

    if-eqz v0, :cond_4

    goto :goto_2

    .line 189
    :cond_4
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    iget-object v0, v0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->C:Lcom/moji/mjad/view/AdLastFrameView;

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    iget-object v0, v0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->C:Lcom/moji/mjad/view/AdLastFrameView;

    invoke-virtual {v0}, Lcom/moji/mjad/view/AdLastFrameView;->getNetWarningVisibility()I

    move-result v0

    if-nez v0, :cond_6

    return-void

    .line 188
    :cond_5
    :goto_2
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    iget-object v0, v0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->C:Lcom/moji/mjad/view/AdLastFrameView;

    invoke-virtual {v0, v1}, Lcom/moji/mjad/view/AdLastFrameView;->setVisibility(I)V

    .line 192
    :cond_6
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    iget-object v0, v0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->C:Lcom/moji/mjad/view/AdLastFrameView;

    invoke-virtual {v0, v1}, Lcom/moji/mjad/view/AdLastFrameView;->setVisibility(I)V

    .line 193
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    invoke-static {v0}, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->n(Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;)Lcom/moji/mjad/common/data/AdCommon;

    move-result-object v0

    iget-object v0, v0, Lcom/moji/mjad/common/data/AdCommon;->gdtMediaAd:Lcom/qq/e/ads/nativ/NativeMediaADData;

    invoke-interface {v0}, Lcom/qq/e/ads/nativ/NativeMediaADData;->play()V

    goto :goto_3

    .line 195
    :cond_7
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater$3;->b:Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;

    invoke-static {v0}, Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;->o(Lcom/moji/mjad/common/view/creater/style/AbsAdGDTVideoCreater;)Lcom/moji/mjad/common/data/AdCommon;

    move-result-object v0

    iget-object v0, v0, Lcom/moji/mjad/common/data/AdCommon;->gdtMediaAd:Lcom/qq/e/ads/nativ/NativeMediaADData;

    invoke-interface {v0}, Lcom/qq/e/ads/nativ/NativeMediaADData;->stop()V

    :cond_8
    :goto_3
    return-void
.end method
