a.smali

.class public Lcom/kwad/sdk/contentalliance/detail/ad/a;
.super Lcom/kwad/sdk/contentalliance/detail/a;


# instance fields
.field private h:I

.field private i:Lcom/kwad/sdk/core/response/model/AdTemplate;

.field private j:Lcom/kwad/sdk/contentalliance/detail/video/DetailVideoView;

.field private k:Z


# direct methods
.method public constructor <init>()V
    .registers 2

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/detail/a;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->k:Z

    return-void
.end method


# virtual methods
.method protected b()Ljava/lang/String;
    .registers 2

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->k:Z

    if-eqz v0, :cond_7

    const-string v0, "ksad_content_alliance_detail_ad_2"

    :goto_6
    return-object v0

    :cond_7
    const-string v0, "ksad_content_alliance_detail_ad"

    goto :goto_6
.end method

.method protected synthetic c()Lcom/kwad/sdk/core/e/b;
    .registers 2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/detail/ad/a;->p()Lcom/kwad/sdk/contentalliance/detail/c;

    move-result-object v0

    return-object v0
.end method

.method public d()Lcom/kwad/sdk/mvp/Presenter;
    .registers 3

    new-instance v0, Lcom/kwad/sdk/mvp/Presenter;

    invoke-direct {v0}, Lcom/kwad/sdk/mvp/Presenter;-><init>()V

    new-instance v1, Lcom/kwad/sdk/contentalliance/detail/a/b;

    invoke-direct {v1}, Lcom/kwad/sdk/contentalliance/detail/a/b;-><init>()V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/mvp/Presenter;->a(Lcom/kwad/sdk/mvp/Presenter;)V

    new-instance v1, Lcom/kwad/sdk/contentalliance/detail/ad/a/b/a;

    invoke-direct {v1}, Lcom/kwad/sdk/contentalliance/detail/ad/a/b/a;-><init>()V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/mvp/Presenter;->a(Lcom/kwad/sdk/mvp/Presenter;)V

    new-instance v1, Lcom/kwad/sdk/contentalliance/detail/a/a;

    invoke-direct {v1}, Lcom/kwad/sdk/contentalliance/detail/a/a;-><init>()V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/mvp/Presenter;->a(Lcom/kwad/sdk/mvp/Presenter;)V

    new-instance v1, Lcom/kwad/sdk/contentalliance/detail/a/c;

    invoke-direct {v1}, Lcom/kwad/sdk/contentalliance/detail/a/c;-><init>()V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/mvp/Presenter;->a(Lcom/kwad/sdk/mvp/Presenter;)V

    iget-boolean v1, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->k:Z

    if-eqz v1, :cond_5e

    new-instance v1, Lcom/kwad/sdk/contentalliance/detail/a/b/a;

    invoke-direct {v1}, Lcom/kwad/sdk/contentalliance/detail/a/b/a;-><init>()V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/mvp/Presenter;->a(Lcom/kwad/sdk/mvp/Presenter;)V

    invoke-static {}, Lcom/kwad/sdk/core/a/b;->b()Z

    move-result v1

    if-eqz v1, :cond_3f

    new-instance v1, Lcom/kwad/sdk/contentalliance/detail/photo/newui/c/b;

    invoke-direct {v1}, Lcom/kwad/sdk/contentalliance/detail/photo/newui/c/b;-><init>()V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/mvp/Presenter;->a(Lcom/kwad/sdk/mvp/Presenter;)V

    :cond_3f
    invoke-static {}, Lcom/kwad/sdk/core/a/b;->w()Z

    move-result v1

    if-nez v1, :cond_4d

    new-instance v1, Lcom/kwad/sdk/contentalliance/detail/photo/newui/c/a;

    invoke-direct {v1}, Lcom/kwad/sdk/contentalliance/detail/photo/newui/c/a;-><init>()V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/mvp/Presenter;->a(Lcom/kwad/sdk/mvp/Presenter;)V

    :cond_4d
    new-instance v1, Lcom/kwad/sdk/contentalliance/detail/ad/a/a/c;

    invoke-direct {v1}, Lcom/kwad/sdk/contentalliance/detail/ad/a/a/c;-><init>()V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/mvp/Presenter;->a(Lcom/kwad/sdk/mvp/Presenter;)V

    new-instance v1, Lcom/kwad/sdk/contentalliance/detail/ad/a/d;

    invoke-direct {v1}, Lcom/kwad/sdk/contentalliance/detail/ad/a/d;-><init>()V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/mvp/Presenter;->a(Lcom/kwad/sdk/mvp/Presenter;)V

    :goto_5d
    return-object v0

    :cond_5e
    new-instance v1, Lcom/kwad/sdk/contentalliance/detail/a/b/b;

    invoke-direct {v1}, Lcom/kwad/sdk/contentalliance/detail/a/b/b;-><init>()V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/mvp/Presenter;->a(Lcom/kwad/sdk/mvp/Presenter;)V

    new-instance v1, Lcom/kwad/sdk/contentalliance/detail/ad/a/a;

    invoke-direct {v1}, Lcom/kwad/sdk/contentalliance/detail/ad/a/a;-><init>()V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/mvp/Presenter;->a(Lcom/kwad/sdk/mvp/Presenter;)V

    new-instance v1, Lcom/kwad/sdk/contentalliance/detail/ad/a/b;

    invoke-direct {v1}, Lcom/kwad/sdk/contentalliance/detail/ad/a/b;-><init>()V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/mvp/Presenter;->a(Lcom/kwad/sdk/mvp/Presenter;)V

    new-instance v1, Lcom/kwad/sdk/contentalliance/detail/ad/a/c;

    invoke-direct {v1}, Lcom/kwad/sdk/contentalliance/detail/ad/a/c;-><init>()V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/mvp/Presenter;->a(Lcom/kwad/sdk/mvp/Presenter;)V

    goto :goto_5d
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .registers 3
    .param p1    # Landroid/os/Bundle;
        .annotation build Landroid/support/annotation/Nullable;
        .end annotation
    .end param

    invoke-super {p0, p1}, Lcom/kwad/sdk/contentalliance/detail/a;->onCreate(Landroid/os/Bundle;)V

    invoke-static {}, Lcom/kwad/sdk/core/a/b;->u()Z

    move-result v0

    iput-boolean v0, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->k:Z

    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .registers 8
    .param p1    # Landroid/view/LayoutInflater;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Landroid/view/ViewGroup;
        .annotation build Landroid/support/annotation/Nullable;
        .end annotation
    .end param
    .param p3    # Landroid/os/Bundle;
        .annotation build Landroid/support/annotation/Nullable;
        .end annotation
    .end param
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    invoke-super {p0, p1, p2, p3}, Lcom/kwad/sdk/contentalliance/detail/a;->onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/detail/ad/a;->getArguments()Landroid/os/Bundle;

    move-result-object v0

    if-nez v0, :cond_13

    const-string v0, "DetailAdFragment"

    const-string v1, "bundle is null"

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->d(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->c:Landroid/view/ViewGroup;

    :goto_12
    return-object v0

    :cond_13
    const-string v1, "KEY_INDEX_IN_VIEW_PAGER"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->h:I

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/detail/ad/a;->getArguments()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "key_template"

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

    move-result-object v0

    instance-of v1, v0, Lcom/kwad/sdk/core/response/model/AdTemplate;

    if-nez v1, :cond_44

    const-string v1, "DetailAdFragment"

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "data is not instanceof AdTemplate:"

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

    move-result-object v2

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

    move-result-object v0

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

    move-result-object v0

    invoke-static {v1, v0}, Lcom/kwad/sdk/core/d/b;->d(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->c:Landroid/view/ViewGroup;

    goto :goto_12

    :cond_44
    check-cast v0, Lcom/kwad/sdk/core/response/model/AdTemplate;

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->i:Lcom/kwad/sdk/core/response/model/AdTemplate;

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->c:Landroid/view/ViewGroup;

    const-string v1, "ksad_video_player"

    invoke-static {v0, v1}, Lcom/kwad/sdk/c/ae;->a(Landroid/view/View;Ljava/lang/String;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/kwad/sdk/contentalliance/detail/video/DetailVideoView;

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->j:Lcom/kwad/sdk/contentalliance/detail/video/DetailVideoView;

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->c:Landroid/view/ViewGroup;

    goto :goto_12
.end method

.method protected p()Lcom/kwad/sdk/contentalliance/detail/c;
    .registers 5

    new-instance v0, Lcom/kwad/sdk/contentalliance/detail/c;

    invoke-direct {v0}, Lcom/kwad/sdk/contentalliance/detail/c;-><init>()V

    iput-object p0, v0, Lcom/kwad/sdk/contentalliance/detail/c;->i:Lcom/kwad/sdk/api/core/fragment/KsFragment;

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->e:Lcom/kwad/sdk/contentalliance/home/l;

    iput-object v1, v0, Lcom/kwad/sdk/contentalliance/detail/c;->a:Lcom/kwad/sdk/contentalliance/home/l;

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->d:Lcom/kwad/sdk/contentalliance/home/viewpager/SlidePlayViewPager;

    iput-object v1, v0, Lcom/kwad/sdk/contentalliance/detail/c;->j:Lcom/kwad/sdk/contentalliance/home/viewpager/SlidePlayViewPager;

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->i:Lcom/kwad/sdk/core/response/model/AdTemplate;

    iput-object v1, v0, Lcom/kwad/sdk/contentalliance/detail/c;->h:Lcom/kwad/sdk/core/response/model/AdTemplate;

    iget v1, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->h:I

    iput v1, v0, Lcom/kwad/sdk/contentalliance/detail/c;->g:I

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->i:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-static {v1}, Lcom/kwad/sdk/core/response/b/c;->j(Lcom/kwad/sdk/core/response/model/AdTemplate;)Lcom/kwad/sdk/core/response/model/AdInfo;

    move-result-object v1

    invoke-static {v1}, Lcom/kwad/sdk/core/response/b/a;->t(Lcom/kwad/sdk/core/response/model/AdInfo;)Z

    move-result v1

    if-eqz v1, :cond_2c

    new-instance v1, Lcom/kwad/sdk/core/download/a/b;

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->i:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-direct {v1, v2}, Lcom/kwad/sdk/core/download/a/b;-><init>(Lcom/kwad/sdk/core/response/model/AdTemplate;)V

    iput-object v1, v0, Lcom/kwad/sdk/contentalliance/detail/c;->l:Lcom/kwad/sdk/core/download/a/b;

    :cond_2c
    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->i:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-static {v1}, Lcom/kwad/sdk/core/response/b/b;->p(Lcom/kwad/sdk/core/response/model/AdTemplate;)Z

    move-result v1

    if-eqz v1, :cond_3b

    new-instance v1, Lcom/kwad/sdk/d/b;

    invoke-direct {v1}, Lcom/kwad/sdk/d/b;-><init>()V

    iput-object v1, v0, Lcom/kwad/sdk/contentalliance/detail/c;->m:Lcom/kwad/sdk/d/b;

    :cond_3b
    new-instance v1, Lcom/kwad/sdk/contentalliance/detail/video/b;

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->j:Lcom/kwad/sdk/contentalliance/detail/video/DetailVideoView;

    iget-object v3, p0, Lcom/kwad/sdk/contentalliance/detail/ad/a;->i:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-direct {v1, p0, v2, v3}, Lcom/kwad/sdk/contentalliance/detail/video/b;-><init>(Lcom/kwad/sdk/api/core/fragment/KsFragment;Lcom/kwad/sdk/contentalliance/detail/video/DetailVideoView;Lcom/kwad/sdk/core/response/model/AdTemplate;)V

    iget-object v2, v0, Lcom/kwad/sdk/contentalliance/detail/c;->b:Ljava/util/List;

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

    iget-object v2, v0, Lcom/kwad/sdk/contentalliance/detail/c;->c:Ljava/util/List;

    invoke-virtual {v1}, Lcom/kwad/sdk/contentalliance/detail/video/b;->d()Lcom/kwad/sdk/contentalliance/a/c;

    move-result-object v3

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

    iput-object v1, v0, Lcom/kwad/sdk/contentalliance/detail/c;->k:Lcom/kwad/sdk/contentalliance/detail/video/b;

    return-object v0
.end method