.class public Lcom/moji/mjad/splash/activity/SplashVideoActivity;
.super Lcom/moji/base/MJActivity;
.source "SplashVideoActivity.java"

# interfaces
.implements Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjad/splash/activity/SplashVideoActivity$MyHandler;,
        Lcom/moji/mjad/splash/activity/SplashVideoActivity$TimeCount;
    }
.end annotation


# static fields
.field public static final VIDEO_RESULT_CODE:I = 0x63


# instance fields
.field private A:Landroid/os/Handler;

.field private a:I

.field private b:I

.field private c:I

.field private i:I

.field private j:Landroid/widget/RelativeLayout;

.field private k:Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;

.field private l:Z

.field private m:I

.field private n:Landroid/widget/TextView;

.field private o:Landroid/widget/LinearLayout;

.field private p:Landroid/widget/RelativeLayout;

.field private q:Landroid/widget/ImageView;

.field private r:Landroid/widget/RelativeLayout;

.field private s:Landroid/widget/RelativeLayout;

.field private t:Landroid/widget/ImageView;

.field private u:Lcom/moji/mjad/splash/data/AdSplashVideo;

.field private v:Lcom/moji/mjad/splash/control/SplashAdControl;

.field private w:Lcom/moji/mjad/splash/activity/SplashVideoActivity$TimeCount;

.field private x:Z

.field private y:Z

.field private z:Z


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 41
    invoke-direct {p0}, Lcom/moji/base/MJActivity;-><init>()V

    const/16 v0, -0x3e7

    .line 44
    iput v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->a:I

    iput v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->b:I

    iput v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->c:I

    iput v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->i:I

    const/16 v0, 0xbb8

    .line 48
    iput v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->m:I

    const/4 v0, 0x1

    .line 60
    iput-boolean v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->y:Z

    .line 61
    iput-boolean v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->z:Z

    return-void
.end method

.method static synthetic a(Lcom/moji/mjad/splash/activity/SplashVideoActivity;I)I
    .locals 0

    .line 41
    iput p1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->a:I

    return p1
.end method

.method static synthetic a(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)Lcom/moji/mjad/splash/control/SplashAdControl;
    .locals 0

    .line 41
    iget-object p0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->v:Lcom/moji/mjad/splash/control/SplashAdControl;

    return-object p0
.end method

.method private a()V
    .locals 3

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

    invoke-virtual {p0, v0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->j:Landroid/widget/RelativeLayout;

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

    invoke-virtual {p0, v0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->n:Landroid/widget/TextView;

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

    invoke-virtual {p0, v0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->o:Landroid/widget/LinearLayout;

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

    invoke-virtual {p0, v0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->p:Landroid/widget/RelativeLayout;

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

    invoke-virtual {p0, v0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->q:Landroid/widget/ImageView;

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

    invoke-virtual {p0, v0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->r:Landroid/widget/RelativeLayout;

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

    invoke-virtual {p0, v0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->s:Landroid/widget/RelativeLayout;

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

    invoke-virtual {p0, v0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->t:Landroid/widget/ImageView;

    .line 84
    invoke-virtual {p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 86
    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "ad_splash"

    .line 88
    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getSerializable(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v1

    check-cast v1, Lcom/moji/mjad/splash/data/AdSplashVideo;

    iput-object v1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    const-string v1, "if_show_default"

    const/4 v2, 0x1

    .line 89
    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->y:Z

    .line 92
    :cond_0
    iget-boolean v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->y:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    .line 93
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->q:Landroid/widget/ImageView;

    sget v2, Lcom/moji/mjad/R$drawable;->splash:I

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 94
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->q:Landroid/widget/ImageView;

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

    goto :goto_0

    .line 96
    :cond_1
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->q:Landroid/widget/ImageView;

    const/16 v2, 0x8

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

    .line 98
    :goto_0
    invoke-virtual {p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/high16 v2, 0x1000000

    invoke-virtual {v0, v2, v2}, Landroid/view/Window;->setFlags(II)V

    const-string v0, "SplashVideoActivity"

    const-string v2, "sea SplashVideoActivity AdTextureVideoPlayer"

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

    .line 100
    iput-boolean v1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->l:Z

    .line 101
    new-instance v0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;

    invoke-direct {v0, p0}, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->k:Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;

    .line 102
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->k:Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;

    invoke-virtual {v0, p0}, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->a(Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;)V

    .line 103
    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v1, -0x1

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

    .line 104
    iget-object v1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->j:Landroid/widget/RelativeLayout;

    iget-object v2, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->k:Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;

    invoke-virtual {v2}, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->a()Landroid/view/View;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method private a(J)V
    .locals 4

    .line 311
    new-instance v0, Lcom/moji/mjad/preferences/MojiAdPreference;

    invoke-direct {v0}, Lcom/moji/mjad/preferences/MojiAdPreference;-><init>()V

    .line 312
    invoke-direct {p0, v0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->a(Lcom/moji/mjad/preferences/MojiAdPreference;)V

    .line 313
    invoke-virtual {v0, p1, p2}, Lcom/moji/mjad/preferences/MojiAdPreference;->g(J)V

    .line 314
    invoke-virtual {v0}, Lcom/moji/mjad/preferences/MojiAdPreference;->e()Ljava/util/List;

    move-result-object v1

    .line 315
    invoke-virtual {v0}, Lcom/moji/mjad/preferences/MojiAdPreference;->d()Ljava/util/List;

    move-result-object v2

    if-eqz v1, :cond_0

    .line 316
    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-interface {v1, v3}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 317
    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 318
    invoke-virtual {v0, v1}, Lcom/moji/mjad/preferences/MojiAdPreference;->b(Ljava/util/List;)V

    goto :goto_0

    :cond_0
    if-nez v1, :cond_1

    .line 320
    new-instance v1, Ljava/util/ArrayList;

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

    .line 321
    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 322
    invoke-virtual {v0, v1}, Lcom/moji/mjad/preferences/MojiAdPreference;->b(Ljava/util/List;)V

    :cond_1
    :goto_0
    if-eqz v2, :cond_2

    .line 324
    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-interface {v2, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 325
    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 326
    invoke-virtual {v0, v2}, Lcom/moji/mjad/preferences/MojiAdPreference;->a(Ljava/util/List;)V

    goto :goto_1

    :cond_2
    if-nez v2, :cond_3

    .line 328
    new-instance v1, Ljava/util/ArrayList;

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

    .line 329
    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 330
    invoke-virtual {v0, v1}, Lcom/moji/mjad/preferences/MojiAdPreference;->a(Ljava/util/List;)V

    :cond_3
    :goto_1
    const-string v1, "SplashViewCreater"

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

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

    const-string v3, "sea splash \u8f6e\u64ad-SplashViewCreater-\u4eca\u5929\u5c55\u793a\u7684ID\uff1a"

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

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

    const-string p1, "--"

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

    invoke-virtual {v0}, Lcom/moji/mjad/preferences/MojiAdPreference;->e()Ljava/util/List;

    move-result-object p1

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

    const-string p1, "--"

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

    invoke-virtual {v0}, Lcom/moji/mjad/preferences/MojiAdPreference;->d()Ljava/util/List;

    move-result-object p1

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

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

    move-result-object p1

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

    return-void
.end method

.method private a(Lcom/moji/mjad/preferences/MojiAdPreference;)V
    .locals 3

    .line 341
    invoke-virtual {p1}, Lcom/moji/mjad/preferences/MojiAdPreference;->v()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    .line 342
    invoke-virtual {p1, v0}, Lcom/moji/mjad/preferences/MojiAdPreference;->b(Z)V

    .line 343
    invoke-virtual {p1}, Lcom/moji/mjad/preferences/MojiAdPreference;->h()I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    .line 344
    invoke-virtual {p1, v0}, Lcom/moji/mjad/preferences/MojiAdPreference;->b(I)V

    const-string p1, "SplashVideoActivity"

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

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

    const-string v2, "sea splash \u8f6e\u64ad-SplashVideoActivity-\u5f53\u524d\u5c55\u793a\u4e2a\u6570"

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

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

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

    move-result-object v0

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

    :cond_0
    return-void
.end method

.method private a(Z)V
    .locals 3

    .line 209
    iget-boolean v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->x:Z

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    .line 211
    iput-boolean v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->x:Z

    .line 212
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->w:Lcom/moji/mjad/splash/activity/SplashVideoActivity$TimeCount;

    if-eqz v0, :cond_1

    .line 213
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->w:Lcom/moji/mjad/splash/activity/SplashVideoActivity$TimeCount;

    invoke-virtual {v0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity$TimeCount;->cancel()V

    .line 215
    :cond_1
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->k:Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;

    if-eqz v0, :cond_2

    .line 216
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->k:Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;

    invoke-virtual {v0}, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->b()V

    .line 218
    :cond_2
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->q:Landroid/widget/ImageView;

    if-eqz v0, :cond_3

    .line 219
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->q:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    :cond_3
    if-eqz p1, :cond_4

    .line 221
    iget-object p1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    if-eqz p1, :cond_4

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

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->NEW_AD_SPLASH_SHOW_FORAPPLE:Lcom/moji/statistics/EVENT_TAG;

    iget-object v1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    iget-wide v1, v1, Lcom/moji/mjad/splash/data/AdSplashVideo;->id:J

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    :cond_4
    const/16 p1, 0x63

    .line 224
    invoke-virtual {p0, p1}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->setResult(I)V

    .line 225
    invoke-virtual {p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->finish()V

    .line 226
    sget p1, Lcom/moji/mjad/R$anim;->empty_instead:I

    sget v0, Lcom/moji/mjad/R$anim;->ad_activity_alpha_out:I

    invoke-virtual {p0, p1, v0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->overridePendingTransition(II)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjad/splash/activity/SplashVideoActivity;Z)Z
    .locals 0

    .line 41
    iput-boolean p1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->z:Z

    return p1
.end method

.method static synthetic b(Lcom/moji/mjad/splash/activity/SplashVideoActivity;I)I
    .locals 0

    .line 41
    iput p1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->b:I

    return p1
.end method

.method private b()V
    .locals 3

    .line 108
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    iget-object v0, v0, Lcom/moji/mjad/splash/data/AdSplashVideo;->filePath:Ljava/lang/String;

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

    move-result v0

    if-nez v0, :cond_3

    .line 109
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->n:Landroid/widget/TextView;

    if-eqz v0, :cond_1

    .line 110
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    iget-boolean v0, v0, Lcom/moji/mjad/splash/data/AdSplashVideo;->isShowAdSign:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 111
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->n:Landroid/widget/TextView;

    sget v2, Lcom/moji/mjad/R$dimen;->mj_ad_skip_ad_text_size:I

    invoke-static {v2}, Lcom/moji/tool/DeviceTool;->a(I)F

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 112
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->n:Landroid/widget/TextView;

    sget v1, Lcom/moji/mjad/R$string;->ad_skip_ad:I

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

    goto :goto_0

    .line 114
    :cond_0
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->n:Landroid/widget/TextView;

    sget v2, Lcom/moji/mjad/R$dimen;->mj_ad_skip_text_size:I

    invoke-static {v2}, Lcom/moji/tool/DeviceTool;->a(I)F

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 115
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->n:Landroid/widget/TextView;

    sget v1, Lcom/moji/mjad/R$string;->ad_skip:I

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

    .line 118
    :cond_1
    :goto_0
    new-instance v0, Lcom/moji/mjad/splash/control/SplashAdControl;

    invoke-virtual {p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

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

    iput-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->v:Lcom/moji/mjad/splash/control/SplashAdControl;

    .line 119
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->v:Lcom/moji/mjad/splash/control/SplashAdControl;

    iget-object v1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    invoke-virtual {v0, v1}, Lcom/moji/mjad/splash/control/SplashAdControl;->setAdInfo(Lcom/moji/mjad/base/data/MojiRecordData;)V

    .line 120
    invoke-direct {p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->d()V

    .line 121
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->k:Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;

    if-eqz v0, :cond_2

    .line 122
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->k:Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;

    iget-boolean v1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->y:Z

    invoke-virtual {v0, v1}, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->a(Z)V

    .line 123
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->k:Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;

    iget-object v1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    invoke-virtual {v0, v1}, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->a(Ljava/lang/Object;)V

    goto :goto_1

    .line 125
    :cond_2
    invoke-direct {p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->e()V

    goto :goto_1

    .line 128
    :cond_3
    invoke-direct {p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->e()V

    :goto_1
    return-void
.end method

.method static synthetic b(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)V
    .locals 0

    .line 41
    invoke-direct {p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->e()V

    return-void
.end method

.method static synthetic b(Lcom/moji/mjad/splash/activity/SplashVideoActivity;Z)V
    .locals 0

    .line 41
    invoke-direct {p0, p1}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->a(Z)V

    return-void
.end method

.method static synthetic c(Lcom/moji/mjad/splash/activity/SplashVideoActivity;I)I
    .locals 0

    .line 41
    iput p1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->c:I

    return p1
.end method

.method private c()V
    .locals 2

    .line 132
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->p:Landroid/widget/RelativeLayout;

    new-instance v1, Lcom/moji/mjad/splash/activity/SplashVideoActivity$1;

    invoke-direct {v1, p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity$1;-><init>(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 141
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->r:Landroid/widget/RelativeLayout;

    new-instance v1, Lcom/moji/mjad/splash/activity/SplashVideoActivity$2;

    invoke-direct {v1, p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity$2;-><init>(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 158
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->r:Landroid/widget/RelativeLayout;

    new-instance v1, Lcom/moji/mjad/splash/activity/SplashVideoActivity$3;

    invoke-direct {v1, p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity$3;-><init>(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method static synthetic c(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)Z
    .locals 0

    .line 41
    iget-boolean p0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->z:Z

    return p0
.end method

.method static synthetic d(Lcom/moji/mjad/splash/activity/SplashVideoActivity;I)I
    .locals 0

    .line 41
    iput p1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->i:I

    return p1
.end method

.method static synthetic d(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)Lcom/moji/mjad/splash/data/AdSplashVideo;
    .locals 0

    .line 41
    iget-object p0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    return-object p0
.end method

.method private d()V
    .locals 7

    .line 194
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    if-eqz v0, :cond_0

    .line 195
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    iget v0, v0, Lcom/moji/mjad/splash/data/AdSplashVideo;->clickArea:I

    const-string v1, "sea"

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

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

    const-string v3, "sea splash mSplashPercent:"

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

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

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

    move-result-object v2

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

    if-lez v0, :cond_0

    const/16 v1, 0x64

    if-gt v0, v1, :cond_0

    .line 198
    iget-object v2, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->r:Landroid/widget/RelativeLayout;

    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    int-to-float v4, v0

    const/4 v5, 0x0

    const/4 v6, -0x1

    invoke-direct {v3, v6, v5, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    invoke-virtual {v2, v3}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 200
    iget-object v2, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->s:Landroid/widget/RelativeLayout;

    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    sub-int/2addr v1, v0

    int-to-float v0, v1

    invoke-direct {v3, v6, v5, v0}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    invoke-virtual {v2, v3}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :cond_0
    return-void
.end method

.method static synthetic e(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)I
    .locals 0

    .line 41
    iget p0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->c:I

    return p0
.end method

.method private e()V
    .locals 1

    const/4 v0, 0x0

    .line 206
    invoke-direct {p0, v0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->a(Z)V

    return-void
.end method

.method static synthetic f(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)I
    .locals 0

    .line 41
    iget p0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->a:I

    return p0
.end method

.method static synthetic g(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)I
    .locals 0

    .line 41
    iget p0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->i:I

    return p0
.end method

.method static synthetic h(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)I
    .locals 0

    .line 41
    iget p0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->b:I

    return p0
.end method

.method static synthetic i(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)Landroid/widget/ImageView;
    .locals 0

    .line 41
    iget-object p0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->q:Landroid/widget/ImageView;

    return-object p0
.end method

.method static synthetic j(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)Z
    .locals 0

    .line 41
    iget-boolean p0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->l:Z

    return p0
.end method

.method static synthetic k(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)Z
    .locals 0

    .line 41
    iget-boolean p0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->y:Z

    return p0
.end method

.method static synthetic l(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)Landroid/widget/ImageView;
    .locals 0

    .line 41
    iget-object p0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->t:Landroid/widget/ImageView;

    return-object p0
.end method

.method static synthetic m(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)Landroid/widget/LinearLayout;
    .locals 0

    .line 41
    iget-object p0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->o:Landroid/widget/LinearLayout;

    return-object p0
.end method

.method static synthetic n(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)Landroid/widget/RelativeLayout;
    .locals 0

    .line 41
    iget-object p0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->p:Landroid/widget/RelativeLayout;

    return-object p0
.end method


# virtual methods
.method public onBackPressed()V
    .locals 0

    return-void
.end method

.method public onCompletion()V
    .locals 1

    const/4 v0, 0x1

    .line 231
    invoke-direct {p0, v0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->a(Z)V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 65
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V

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

    const/16 v0, 0x15

    if-lt p1, v0, :cond_0

    .line 67
    invoke-virtual {p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const/high16 v0, -0x80000000

    invoke-virtual {p1, v0}, Landroid/view/Window;->clearFlags(I)V

    .line 69
    :cond_0
    sget p1, Lcom/moji/mjad/R$layout;->activity_splash_video:I

    invoke-virtual {p0, p1}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->setContentView(I)V

    .line 70
    new-instance p1, Lcom/moji/mjad/splash/activity/SplashVideoActivity$MyHandler;

    invoke-direct {p1, p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity$MyHandler;-><init>(Lcom/moji/mjad/splash/activity/SplashVideoActivity;)V

    iput-object p1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->A:Landroid/os/Handler;

    .line 71
    invoke-direct {p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->a()V

    .line 72
    invoke-direct {p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->c()V

    .line 73
    invoke-direct {p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->b()V

    return-void
.end method

.method public onDataError()V
    .locals 0

    .line 264
    invoke-direct {p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->e()V

    return-void
.end method

.method public onError(Z)V
    .locals 3

    if-eqz p1, :cond_0

    .line 236
    iget-boolean p1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->y:Z

    if-eqz p1, :cond_0

    .line 237
    iget-object p1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->A:Landroid/os/Handler;

    const/4 v0, 0x1

    const-wide/16 v1, 0x1f4

    invoke-virtual {p1, v0, v1, v2}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    goto :goto_0

    .line 239
    :cond_0
    invoke-direct {p0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->e()V

    :goto_0
    return-void
.end method

.method public onPrepared()V
    .locals 7

    .line 245
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->q:Landroid/widget/ImageView;

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->l:Z

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->y:Z

    if-eqz v0, :cond_0

    .line 246
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->q:Landroid/widget/ImageView;

    const/16 v1, 0x8

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

    .line 248
    :cond_0
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    iget v0, v0, Lcom/moji/mjad/splash/data/AdSplashVideo;->showTime:I

    if-ltz v0, :cond_1

    .line 249
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    iget v0, v0, Lcom/moji/mjad/splash/data/AdSplashVideo;->showTime:I

    iput v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->m:I

    :cond_1
    const-string v0, "SplashViewCreater"

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

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

    const-string v2, "SplashViewCreater--splash--showtime:"

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

    iget v2, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->m:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)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;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 252
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    if-eqz v0, :cond_2

    .line 253
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->u:Lcom/moji/mjad/splash/data/AdSplashVideo;

    iget-wide v0, v0, Lcom/moji/mjad/splash/data/AdSplashVideo;->id:J

    invoke-direct {p0, v0, v1}, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->a(J)V

    .line 255
    :cond_2
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->v:Lcom/moji/mjad/splash/control/SplashAdControl;

    if-eqz v0, :cond_3

    .line 256
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->v:Lcom/moji/mjad/splash/control/SplashAdControl;

    invoke-virtual {v0}, Lcom/moji/mjad/splash/control/SplashAdControl;->recordShow()V

    .line 258
    :cond_3
    new-instance v0, Lcom/moji/mjad/splash/activity/SplashVideoActivity$TimeCount;

    iget v1, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->m:I

    int-to-long v3, v1

    const-wide/16 v5, 0x14

    move-object v1, v0

    move-object v2, p0

    invoke-direct/range {v1 .. v6}, Lcom/moji/mjad/splash/activity/SplashVideoActivity$TimeCount;-><init>(Lcom/moji/mjad/splash/activity/SplashVideoActivity;JJ)V

    iput-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->w:Lcom/moji/mjad/splash/activity/SplashVideoActivity$TimeCount;

    .line 259
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->w:Lcom/moji/mjad/splash/activity/SplashVideoActivity$TimeCount;

    invoke-virtual {v0}, Lcom/moji/mjad/splash/activity/SplashVideoActivity$TimeCount;->start()Landroid/os/CountDownTimer;

    return-void
.end method

.method public onReadyStart()V
    .locals 2

    .line 269
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->j:Landroid/widget/RelativeLayout;

    if-eqz v0, :cond_0

    .line 270
    iget-object v0, p0, Lcom/moji/mjad/splash/activity/SplashVideoActivity;->j:Landroid/widget/RelativeLayout;

    const/4 v1, 0x0

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

    :cond_0
    return-void
.end method
