.class public Lcom/moji/mjweather/weather/window/AdWindowSix;
.super Lcom/moji/mjweather/weather/window/AdWindowNative;
.source "AdWindowSix.java"

# interfaces
.implements Lcom/moji/mjad/base/view/videoview/AdVideoPlayer$IAdVideoCustomCallback;


# instance fields
.field private l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/moji/mjad/avatar/data/AvatarCard;)V
    .locals 0

    .line 50
    invoke-direct {p0, p1, p2, p3}, Lcom/moji/mjweather/weather/window/AdWindowNative;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/moji/mjad/avatar/data/AvatarCard;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/weather/window/AdWindowSix;Landroid/view/View;)V
    .locals 0

    .line 41
    invoke-super {p0, p1}, Lcom/moji/mjweather/weather/window/AdWindowNative;->onClick(Landroid/view/View;)V

    return-void
.end method

.method private w()V
    .locals 6

    const-string v0, "zdxnative"

    const-string v1, "  native  set six ad window video "

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

    .line 67
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    if-nez v0, :cond_0

    return-void

    .line 71
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;->c(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    move-result-object v0

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;->j(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    move-result-object v0

    invoke-virtual {v0, v1}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;->i(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    move-result-object v0

    invoke-virtual {v0, v1}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;->k(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    .line 72
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object v0, v0, Lcom/moji/mjad/avatar/data/AvatarCard;->videoUrl:Lcom/moji/mjad/base/data/AdImageInfo;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object v0, v0, Lcom/moji/mjad/avatar/data/AvatarCard;->videoUrl:Lcom/moji/mjad/base/data/AdImageInfo;

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

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 73
    new-instance v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;

    invoke-direct {v0}, Lcom/moji/mjad/base/data/AdVideoPlayerParam;-><init>()V

    .line 74
    iget-object v1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object v1, v1, Lcom/moji/mjad/avatar/data/AvatarCard;->videoUrl:Lcom/moji/mjad/base/data/AdImageInfo;

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

    iput-object v1, v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoUrl:Ljava/lang/String;

    .line 75
    iget-object v1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object v1, v1, Lcom/moji/mjad/avatar/data/AvatarCard;->videoCover:Lcom/moji/mjad/base/data/AdImageInfo;

    if-eqz v1, :cond_1

    .line 76
    iget-object v1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object v1, v1, Lcom/moji/mjad/avatar/data/AvatarCard;->videoCover:Lcom/moji/mjad/base/data/AdImageInfo;

    iput-object v1, v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->coverImageInfo:Lcom/moji/mjad/base/data/AdImageInfo;

    .line 78
    :cond_1
    iget-object v1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget v1, v1, Lcom/moji/mjad/avatar/data/AvatarCard;->isAutoPlay:I

    iput v1, v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isAutoPlay:I

    .line 79
    iget-object v1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget v1, v1, Lcom/moji/mjad/avatar/data/AvatarCard;->playValidTime:I

    iput v1, v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->playValidTime:I

    .line 80
    iget-object v1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget v1, v1, Lcom/moji/mjad/avatar/data/AvatarCard;->duration:I

    int-to-long v3, v1

    iput-wide v3, v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoLength:J

    .line 81
    iput-boolean v2, v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isCyclePlay:Z

    .line 84
    :try_start_0
    iget-object v1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    invoke-virtual {v1, v0}, Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;->setAdVideoPlayerParam(Lcom/moji/mjad/base/data/AdVideoPlayerParam;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 86
    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_3

    const-string v1, "zdxnative"

    .line 87
    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "  native exception --- "

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

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

    move-result-object v0

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

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

    move-result-object v0

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

    goto :goto_0

    .line 90
    :cond_2
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    const-string v3, ""

    new-array v4, v2, [Ljava/lang/Object;

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v4, v1

    invoke-virtual {v0, v3, v2, v4}, Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;->a(Ljava/lang/String;I[Ljava/lang/Object;)Z

    :cond_3
    :goto_0
    return-void
.end method


# virtual methods
.method public a(JI)V
    .locals 4

    .line 199
    :try_start_0
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    if-eqz v0, :cond_1

    const-string v0, "zdxnative"

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

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

    const-string v2, "  sendVideoPlayTimeStatistics  playValidTime--- "

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

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

    const-string p3, "      playTime--- "

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

    invoke-virtual {v1, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

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

    move-result-object p3

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

    .line 202
    iget-object p3, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object p3, p3, Lcom/moji/mjad/avatar/data/AvatarCard;->adShowParams:Ljava/lang/String;

    .line 203
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0, p3}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string p3, "adValidity"

    .line 204
    iget-object v1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget v1, v1, Lcom/moji/mjad/avatar/data/AvatarCard;->playValidTime:I

    int-to-long v1, v1

    cmp-long v3, p1, v1

    if-ltz v3, :cond_0

    const-string v1, "1"

    goto :goto_0

    :cond_0
    const-string v1, "0"

    :goto_0
    invoke-virtual {v0, p3, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string p3, "validTime"

    .line 205
    invoke-virtual {v0, p3, p1, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    .line 206
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p2, Lcom/moji/statistics/EVENT_TAG;->NEW_AD_VIDEO_PLAY_DU:Lcom/moji/statistics/EVENT_TAG;

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

    move-result-object p3

    invoke-virtual {p1, p2, p3}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    const-string p2, "AdWindowFour"

    .line 209
    invoke-static {p2, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    :cond_1
    :goto_1
    return-void
.end method

.method public a(Lcom/moji/mjad/avatar/data/AvatarCard;)V
    .locals 1

    .line 55
    iput-object p1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    .line 56
    iget-object p1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->j:Lcom/moji/mjad/avatar/AvatarCardAdControl;

    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    invoke-virtual {p1, v0}, Lcom/moji/mjad/avatar/AvatarCardAdControl;->setAdInfo(Lcom/moji/mjad/base/data/MojiRecordData;)V

    .line 57
    invoke-virtual {p0}, Lcom/moji/mjweather/weather/window/AdWindowSix;->c()V

    .line 58
    invoke-virtual {p0}, Lcom/moji/mjweather/weather/window/AdWindowSix;->h()V

    .line 59
    invoke-virtual {p0}, Lcom/moji/mjweather/weather/window/AdWindowSix;->i()V

    .line 60
    invoke-virtual {p0}, Lcom/moji/mjweather/weather/window/AdWindowSix;->k()V

    .line 61
    invoke-direct {p0}, Lcom/moji/mjweather/weather/window/AdWindowSix;->w()V

    .line 62
    invoke-virtual {p0}, Lcom/moji/mjweather/weather/window/AdWindowSix;->l()V

    return-void
.end method

.method public a(Ljava/lang/String;Landroid/view/View;)V
    .locals 0

    .line 188
    invoke-static {p0, p2}, Lcom/moji/mjweather/weather/window/AdWindowSix;->a(Lcom/moji/mjweather/weather/window/AdWindowSix;Landroid/view/View;)V

    return-void
.end method

.method public a(Z)V
    .locals 0

    return-void
.end method

.method public b()V
    .locals 0

    return-void
.end method

.method public b(Z)V
    .locals 0

    return-void
.end method

.method protected c()V
    .locals 4

    .line 123
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->a:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->k:Landroid/view/ViewGroup;

    const/4 v2, 0x0

    const v3, 0x7f0b0224

    invoke-virtual {v0, v3, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->b:Landroid/widget/RelativeLayout;

    .line 124
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->b:Landroid/widget/RelativeLayout;

    const v1, 0x7f0900b1

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

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/weather/view/PicassoButton;

    iput-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->e:Lcom/moji/mjweather/weather/view/PicassoButton;

    .line 125
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->b:Landroid/widget/RelativeLayout;

    const v1, 0x7f090039

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

    move-result-object v0

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

    iput-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    .line 126
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    invoke-virtual {v0, v2}, Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;->c(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;->j(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    move-result-object v0

    invoke-virtual {v0, v2}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;->i(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    move-result-object v0

    invoke-virtual {v0, v2}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;->k(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    .line 127
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->b:Landroid/widget/RelativeLayout;

    const v1, 0x7f0900b2

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->c:Landroid/widget/TextView;

    .line 128
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->b:Landroid/widget/RelativeLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    .line 129
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->b:Landroid/widget/RelativeLayout;

    const v1, 0x7f0904c4

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

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/weather/view/PicassoLinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->g:Lcom/moji/mjweather/weather/view/PicassoLinearLayout;

    .line 130
    sget-object v0, Lcom/moji/mjweather/weather/window/IWindow$SHOW_TYPE;->AUTO:Lcom/moji/mjweather/weather/window/IWindow$SHOW_TYPE;

    iput-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->h:Lcom/moji/mjweather/weather/window/IWindow$SHOW_TYPE;

    .line 131
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    invoke-virtual {v0, p0}, Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;->setIAdVideoCustomCallback(Lcom/moji/mjad/base/view/videoview/AdVideoPlayer$IAdVideoCustomCallback;)V

    return-void
.end method

.method public changeVideo(Lcom/moji/base/event/AppIntoBackground;)V
    .locals 0
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    if-eqz p1, :cond_0

    .line 221
    iget-boolean p1, p1, Lcom/moji/base/event/AppIntoBackground;->a:Z

    xor-int/lit8 p1, p1, 0x1

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/window/AdWindowSix;->d(Z)V

    :cond_0
    return-void
.end method

.method public d()V
    .locals 2

    .line 114
    invoke-super {p0}, Lcom/moji/mjweather/weather/window/AdWindowNative;->d()V

    const-string v0, "zdxnative"

    const-string v1, "  show  "

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

    .line 116
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    if-eqz v0, :cond_0

    .line 117
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    const/4 v1, 0x1

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

    :cond_0
    return-void
.end method

.method public d(Z)V
    .locals 1

    .line 230
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    if-eqz v0, :cond_0

    .line 231
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

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

    :cond_0
    return-void
.end method

.method public e()V
    .locals 2

    .line 96
    invoke-super {p0}, Lcom/moji/mjweather/weather/window/AdWindowNative;->e()V

    const-string v0, "zdxnative"

    const-string v1, "  hide --  "

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

    .line 98
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    if-eqz v0, :cond_0

    .line 99
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    const/4 v1, 0x0

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

    :cond_0
    return-void
.end method

.method public f()V
    .locals 2

    .line 105
    invoke-super {p0}, Lcom/moji/mjweather/weather/window/AdWindowNative;->f()V

    const-string v0, "zdxnative"

    const-string v1, "  stop --  "

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

    .line 107
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    if-eqz v0, :cond_0

    .line 108
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    const/4 v1, 0x0

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

    :cond_0
    return-void
.end method

.method public getTransView()Landroid/view/View;
    .locals 1

    .line 178
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->l:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    return-object v0
.end method

.method public i()V
    .locals 8

    .line 136
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->e:Lcom/moji/mjweather/weather/view/PicassoButton;

    if-eqz v0, :cond_7

    .line 137
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object v0, v0, Lcom/moji/mjad/avatar/data/AvatarCard;->buttonContent:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_6

    .line 138
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->e:Lcom/moji/mjweather/weather/view/PicassoButton;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/weather/view/PicassoButton;->setVisibility(I)V

    .line 139
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->e:Lcom/moji/mjweather/weather/view/PicassoButton;

    iget-object v2, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object v2, v2, Lcom/moji/mjad/avatar/data/AvatarCard;->buttonContent:Ljava/lang/String;

    invoke-virtual {v0, v2}, Lcom/moji/mjweather/weather/view/PicassoButton;->setText(Ljava/lang/CharSequence;)V

    .line 140
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object v0, v0, Lcom/moji/mjad/avatar/data/AvatarCard;->buttonColor:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_4

    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object v0, v0, Lcom/moji/mjad/avatar/data/AvatarCard;->buttonColor:Ljava/lang/String;

    const-string v2, "#"

    invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    :try_start_0
    const-string v0, "tonglei"

    .line 142
    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "setButton: "

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

    iget-object v3, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object v3, v3, Lcom/moji/mjad/avatar/data/AvatarCard;->buttonColor:Ljava/lang/String;

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

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

    move-result-object v2

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

    .line 143
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object v0, v0, Lcom/moji/mjad/avatar/data/AvatarCard;->buttonColor:Ljava/lang/String;

    invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v0

    .line 144
    new-instance v2, Landroid/graphics/drawable/GradientDrawable;

    invoke-direct {v2}, Landroid/graphics/drawable/GradientDrawable;-><init>()V

    .line 145
    invoke-virtual {v2, v0}, Landroid/graphics/drawable/GradientDrawable;->setColor(I)V

    const/high16 v3, 0x40800000    # 4.0f

    .line 146
    invoke-static {v3}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v4

    int-to-float v4, v4

    invoke-virtual {v2, v4}, Landroid/graphics/drawable/GradientDrawable;->setCornerRadius(F)V

    .line 147
    new-instance v4, Landroid/graphics/drawable/GradientDrawable;

    invoke-direct {v4}, Landroid/graphics/drawable/GradientDrawable;-><init>()V

    .line 148
    invoke-static {v0}, Landroid/graphics/Color;->red(I)I

    move-result v5

    add-int/lit8 v5, v5, -0x32

    if-lez v5, :cond_0

    invoke-static {v0}, Landroid/graphics/Color;->red(I)I

    move-result v5

    add-int/lit8 v5, v5, -0x32

    goto :goto_0

    :cond_0
    const/4 v5, 0x0

    .line 149
    :goto_0
    invoke-static {v0}, Landroid/graphics/Color;->green(I)I

    move-result v6

    add-int/lit8 v6, v6, -0x32

    if-lez v6, :cond_1

    invoke-static {v0}, Landroid/graphics/Color;->green(I)I

    move-result v6

    add-int/lit8 v6, v6, -0x32

    goto :goto_1

    :cond_1
    const/4 v6, 0x0

    .line 150
    :goto_1
    invoke-static {v0}, Landroid/graphics/Color;->blue(I)I

    move-result v7

    add-int/lit8 v7, v7, -0x32

    if-lez v7, :cond_2

    invoke-static {v0}, Landroid/graphics/Color;->blue(I)I

    move-result v0

    add-int/lit8 v0, v0, -0x32

    goto :goto_2

    :cond_2
    const/4 v0, 0x0

    :goto_2
    const/16 v7, 0xff

    .line 151
    invoke-static {v7, v5, v6, v0}, Landroid/graphics/Color;->argb(IIII)I

    move-result v0

    invoke-virtual {v4, v0}, Landroid/graphics/drawable/GradientDrawable;->setColor(I)V

    .line 152
    invoke-static {v3}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v0

    int-to-float v0, v0

    invoke-virtual {v4, v0}, Landroid/graphics/drawable/GradientDrawable;->setCornerRadius(F)V

    .line 153
    new-instance v0, Landroid/graphics/drawable/StateListDrawable;

    invoke-direct {v0}, Landroid/graphics/drawable/StateListDrawable;-><init>()V

    const/4 v3, 0x1

    .line 154
    new-array v3, v3, [I

    const v5, 0x10100a7

    aput v5, v3, v1

    invoke-virtual {v0, v3, v4}, Landroid/graphics/drawable/StateListDrawable;->addState([ILandroid/graphics/drawable/Drawable;)V

    .line 155
    new-array v1, v1, [I

    invoke-virtual {v0, v1, v2}, Landroid/graphics/drawable/StateListDrawable;->addState([ILandroid/graphics/drawable/Drawable;)V

    .line 156
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x10

    if-ge v1, v2, :cond_3

    .line 157
    iget-object v1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->e:Lcom/moji/mjweather/weather/view/PicassoButton;

    invoke-virtual {v1, v0}, Lcom/moji/mjweather/weather/view/PicassoButton;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_3

    .line 159
    :cond_3
    iget-object v1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->e:Lcom/moji/mjweather/weather/view/PicassoButton;

    invoke-virtual {v1, v0}, Lcom/moji/mjweather/weather/view/PicassoButton;->setBackground(Landroid/graphics/drawable/Drawable;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_3

    :catch_0
    move-exception v0

    const-string v1, "AdWindowFour"

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

    .line 165
    :cond_4
    :goto_3
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object v0, v0, Lcom/moji/mjad/avatar/data/AvatarCard;->buttonImg:Lcom/moji/mjad/base/data/AdImageInfo;

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object v0, v0, Lcom/moji/mjad/avatar/data/AvatarCard;->buttonImg:Lcom/moji/mjad/base/data/AdImageInfo;

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

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_5

    .line 166
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->i:Lcom/moji/mjad/avatar/data/AvatarCard;

    iget-object v1, v1, Lcom/moji/mjad/avatar/data/AvatarCard;->buttonImg:Lcom/moji/mjad/base/data/AdImageInfo;

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

    invoke-virtual {v0, v1}, Lcom/squareup/picasso/Picasso;->a(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->e:Lcom/moji/mjweather/weather/view/PicassoButton;

    invoke-virtual {v0, v1}, Lcom/squareup/picasso/RequestCreator;->a(Lcom/squareup/picasso/Target;)V

    goto :goto_4

    .line 168
    :cond_5
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->e:Lcom/moji/mjweather/weather/view/PicassoButton;

    const v1, 0x7f08013d

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/weather/view/PicassoButton;->setBackgroundResource(I)V

    goto :goto_4

    .line 171
    :cond_6
    iget-object v0, p0, Lcom/moji/mjweather/weather/window/AdWindowSix;->e:Lcom/moji/mjweather/weather/view/PicassoButton;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/weather/view/PicassoButton;->setVisibility(I)V

    :cond_7
    :goto_4
    return-void
.end method

.method public u_()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method
