.class Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;
.super Lcom/moji/mjad/base/view/LoadGifTask;
.source "AdStyleFeedTwoCreater.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;->b(Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;)V
.end annotation

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


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/moji/mjad/base/data/AdImageInfo;

.field final synthetic c:Lcom/moji/mjad/common/data/AdCommon;

.field final synthetic d:Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;


# direct methods
.method constructor <init>(Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;Ljava/lang/String;JLjava/lang/String;Lcom/moji/mjad/base/data/AdImageInfo;Lcom/moji/mjad/common/data/AdCommon;)V
    .locals 0

    .line 69
    iput-object p1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->d:Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;

    iput-object p5, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->a:Ljava/lang/String;

    iput-object p6, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->b:Lcom/moji/mjad/base/data/AdImageInfo;

    iput-object p7, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->c:Lcom/moji/mjad/common/data/AdCommon;

    invoke-direct {p0, p2, p3, p4}, Lcom/moji/mjad/base/view/LoadGifTask;-><init>(Ljava/lang/String;J)V

    return-void
.end method


# virtual methods
.method protected bridge synthetic a(Ljava/lang/Object;)V
    .locals 0

    .line 69
    check-cast p1, Lpl/droidsonroids/gif/GifDrawable;

    invoke-virtual {p0, p1}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->a(Lpl/droidsonroids/gif/GifDrawable;)V

    return-void
.end method

.method protected a(Lpl/droidsonroids/gif/GifDrawable;)V
    .locals 4

    .line 72
    invoke-super {p0, p1}, Lcom/moji/mjad/base/view/LoadGifTask;->a(Ljava/lang/Object;)V

    if-nez p1, :cond_2

    .line 75
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->d:Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;

    invoke-static {p1}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;->a(Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;)Lcom/moji/mjad/common/listener/AdViewShownListener;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 76
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->d:Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;

    invoke-static {p1}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;->b(Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;)Lcom/moji/mjad/common/listener/AdViewShownListener;

    move-result-object p1

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

    iget-object v1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->a:Ljava/lang/String;

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

    .line 78
    :cond_0
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->d:Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;

    invoke-static {p1}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;->c(Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;)Landroid/widget/ImageView;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 79
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->d:Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;

    invoke-static {p1}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;->d(Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;)Landroid/widget/ImageView;

    move-result-object p1

    const-string v0, ""

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    :cond_1
    const/4 p1, 0x0

    goto :goto_0

    :cond_2
    const/4 v0, 0x1

    .line 105
    invoke-virtual {p1}, Lpl/droidsonroids/gif/GifDrawable;->start()V

    .line 106
    iget-object v1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->d:Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;

    invoke-static {v1}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;->e(Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;)Landroid/widget/ImageView;

    move-result-object v1

    if-eqz v1, :cond_3

    .line 107
    iget-object v1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->d:Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;

    invoke-static {v1}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;->f(Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;)Landroid/widget/ImageView;

    move-result-object v1

    invoke-virtual {v1, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 108
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->d:Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;

    invoke-static {p1}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;->g(Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater;)Landroid/widget/ImageView;

    move-result-object p1

    iget-object v1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->b:Lcom/moji/mjad/base/data/AdImageInfo;

    iget-object v1, v1, Lcom/moji/mjad/base/data/AdImageInfo;->imageUrl:Ljava/lang/String;

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    :cond_3
    const/4 p1, 0x1

    .line 111
    :goto_0
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->c:Lcom/moji/mjad/common/data/AdCommon;

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->c:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v0, v0, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    if-eqz v0, :cond_7

    .line 112
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->c:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v0, v0, Lcom/moji/mjad/common/data/AdCommon;->adPositionStat:Lcom/moji/mjad/enumdata/MojiAdPositionStat;

    sget-object v1, Lcom/moji/mjad/enumdata/MojiAdPositionStat;->AD_THIRD_SDK_PRIORITY:Lcom/moji/mjad/enumdata/MojiAdPositionStat;

    if-ne v0, v1, :cond_5

    if-eqz p1, :cond_4

    .line 114
    invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->c:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v0, v0, Lcom/moji/mjad/common/data/AdCommon;->sessionId:Ljava/lang/String;

    iget-object v1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->c:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v1, v1, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    iget v1, v1, Lcom/moji/mjad/enumdata/MojiAdPosition;->value:I

    .line 115
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    .line 114
    invoke-virtual {p1, v0, v1, v2, v3}, Lcom/moji/mjad/statistics/AdStatistics;->i(Ljava/lang/String;IJ)V

    goto :goto_1

    .line 117
    :cond_4
    invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->c:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v0, v0, Lcom/moji/mjad/common/data/AdCommon;->sessionId:Ljava/lang/String;

    iget-object v1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->c:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v1, v1, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    iget v1, v1, Lcom/moji/mjad/enumdata/MojiAdPosition;->value:I

    invoke-virtual {p1, v0, v1}, Lcom/moji/mjad/statistics/AdStatistics;->h(Ljava/lang/String;I)V

    goto :goto_1

    .line 120
    :cond_5
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->c:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v0, v0, Lcom/moji/mjad/common/data/AdCommon;->adPositionStat:Lcom/moji/mjad/enumdata/MojiAdPositionStat;

    sget-object v1, Lcom/moji/mjad/enumdata/MojiAdPositionStat;->AD_SELF_PRIORITY:Lcom/moji/mjad/enumdata/MojiAdPositionStat;

    if-ne v0, v1, :cond_7

    if-eqz p1, :cond_6

    .line 122
    invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->c:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v0, v0, Lcom/moji/mjad/common/data/AdCommon;->sessionId:Ljava/lang/String;

    iget-object v1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->c:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v1, v1, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    iget v1, v1, Lcom/moji/mjad/enumdata/MojiAdPosition;->value:I

    .line 123
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    .line 122
    invoke-virtual {p1, v0, v1, v2, v3}, Lcom/moji/mjad/statistics/AdStatistics;->e(Ljava/lang/String;IJ)V

    goto :goto_1

    .line 125
    :cond_6
    invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->c:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v0, v0, Lcom/moji/mjad/common/data/AdCommon;->sessionId:Ljava/lang/String;

    iget-object v1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedTwoCreater$1;->c:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v1, v1, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    iget v1, v1, Lcom/moji/mjad/enumdata/MojiAdPosition;->value:I

    invoke-virtual {p1, v0, v1}, Lcom/moji/mjad/statistics/AdStatistics;->c(Ljava/lang/String;I)V

    :cond_7
    :goto_1
    return-void
.end method
