g.smali

.class public Lcom/kwad/sdk/contentalliance/tube/profile/b/g;
.super Lcom/kwad/sdk/contentalliance/tube/profile/a/a;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/kwad/sdk/contentalliance/tube/profile/b/g$a;,
        Lcom/kwad/sdk/contentalliance/tube/profile/b/g$b;
    }
.end annotation


# instance fields
.field private b:Landroid/support/v7/widget/RecyclerView;

.field private c:Landroid/widget/TextView;

.field private d:Lcom/kwad/sdk/contentalliance/tube/model/TubeInfo;

.field private e:Lcom/kwai/library/widget/recycler/d;

.field private f:Landroid/view/View;

.field private g:Lcom/kwad/sdk/contentalliance/tube/profile/e;


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

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

    new-instance v0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g$1;

    invoke-direct {v0, p0}, Lcom/kwad/sdk/contentalliance/tube/profile/b/g$1;-><init>(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)V

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->g:Lcom/kwad/sdk/contentalliance/tube/profile/e;

    return-void
.end method

.method static synthetic a(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Landroid/support/v7/widget/RecyclerView;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->b:Landroid/support/v7/widget/RecyclerView;

    return-object v0
.end method

.method static synthetic a(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;Lcom/kwad/sdk/contentalliance/tube/model/TubeInfo;)Lcom/kwad/sdk/contentalliance/tube/model/TubeInfo;
    .registers 2

    iput-object p1, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->d:Lcom/kwad/sdk/contentalliance/tube/model/TubeInfo;

    return-object p1
.end method

.method static synthetic a(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;Lcom/kwai/library/widget/recycler/d;)Lcom/kwai/library/widget/recycler/d;
    .registers 2

    iput-object p1, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->e:Lcom/kwai/library/widget/recycler/d;

    return-object p1
.end method

.method static synthetic b(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Landroid/widget/TextView;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->c:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic c(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Landroid/content/Context;
    .registers 2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->o()Landroid/content/Context;

    move-result-object v0

    return-object v0
.end method

.method static synthetic d(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)V
    .registers 1

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->e()V

    return-void
.end method

.method static synthetic e(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Lcom/kwai/library/widget/recycler/d;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->e:Lcom/kwai/library/widget/recycler/d;

    return-object v0
.end method

.method private e()V
    .registers 5

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->f:Landroid/view/View;

    if-nez v0, :cond_f

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->b:Landroid/support/v7/widget/RecyclerView;

    const-string v1, "ksad_tube_profile_no_more_layout"

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

    move-result-object v0

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->f:Landroid/view/View;

    :cond_f
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->f:Landroid/view/View;

    const-string v1, "ksad_tube_profile_no_more_tip_tv"

    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, Landroid/widget/TextView;

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

    move-result v1

    if-eqz v1, :cond_51

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->e:Lcom/kwai/library/widget/recycler/d;

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->f:Landroid/view/View;

    invoke-virtual {v1, v2}, Lcom/kwai/library/widget/recycler/d;->b(Landroid/view/View;)Z

    move-result v1

    if-nez v1, :cond_30

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->e:Lcom/kwai/library/widget/recycler/d;

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->f:Landroid/view/View;

    invoke-virtual {v1, v2}, Lcom/kwai/library/widget/recycler/d;->a(Landroid/view/View;)V

    :cond_30
    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->f:Landroid/view/View;

    invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

    const-string v1, "tube"

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

    move-result-object v1

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

    move-result v2

    if-eqz v2, :cond_4d

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->f:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "ksad_tube_profile_no_more_tip"

    invoke-static {v1, v2}, Lcom/kwad/sdk/c/t;->f(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :cond_4d
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_50
    return-void

    :cond_51
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->f:Landroid/view/View;

    const/16 v1, 0x8

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

    goto :goto_50
.end method

.method static synthetic f(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Landroid/content/Context;
    .registers 2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->o()Landroid/content/Context;

    move-result-object v0

    return-object v0
.end method

.method static synthetic g(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Landroid/content/Context;
    .registers 2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->o()Landroid/content/Context;

    move-result-object v0

    return-object v0
.end method

.method static synthetic h(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Landroid/content/Context;
    .registers 2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->o()Landroid/content/Context;

    move-result-object v0

    return-object v0
.end method

.method static synthetic i(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Landroid/content/Context;
    .registers 2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->o()Landroid/content/Context;

    move-result-object v0

    return-object v0
.end method

.method static synthetic j(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Landroid/content/Context;
    .registers 2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->o()Landroid/content/Context;

    move-result-object v0

    return-object v0
.end method

.method static synthetic k(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Lcom/kwad/sdk/contentalliance/tube/profile/a/b;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->a:Lcom/kwad/sdk/contentalliance/tube/profile/a/b;

    return-object v0
.end method

.method static synthetic l(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Lcom/kwad/sdk/contentalliance/tube/profile/a/b;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->a:Lcom/kwad/sdk/contentalliance/tube/profile/a/b;

    return-object v0
.end method

.method static synthetic m(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Landroid/content/Context;
    .registers 2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->o()Landroid/content/Context;

    move-result-object v0

    return-object v0
.end method

.method static synthetic n(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Lcom/kwad/sdk/contentalliance/tube/profile/a/b;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->a:Lcom/kwad/sdk/contentalliance/tube/profile/a/b;

    return-object v0
.end method

.method static synthetic o(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Lcom/kwad/sdk/contentalliance/tube/profile/a/b;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->a:Lcom/kwad/sdk/contentalliance/tube/profile/a/b;

    return-object v0
.end method

.method static synthetic p(Lcom/kwad/sdk/contentalliance/tube/profile/b/g;)Landroid/content/Context;
    .registers 2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->o()Landroid/content/Context;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method protected a()V
    .registers 3

    invoke-super {p0}, Lcom/kwad/sdk/contentalliance/tube/profile/a/a;->a()V

    const-string v0, "TubeTrendListPresenter"

    const-string v1, "TubeTrendListPresenter onBind"

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

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->a:Lcom/kwad/sdk/contentalliance/tube/profile/a/b;

    iget-object v0, v0, Lcom/kwad/sdk/contentalliance/tube/profile/a/b;->e:Ljava/util/Set;

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->g:Lcom/kwad/sdk/contentalliance/tube/profile/e;

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

    return-void
.end method

.method protected b()V
    .registers 3

    invoke-super {p0}, Lcom/kwad/sdk/contentalliance/tube/profile/a/a;->b()V

    const-string v0, "TubeTrendListPresenter"

    const-string v1, "TubeTrendListPresenter onCreate"

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

    const-string v0, "ksad_tube_hot_list_label"

    invoke-virtual {p0, v0}, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->c(Ljava/lang/String;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->c:Landroid/widget/TextView;

    const-string v0, "ksad_tube_recycler_view"

    invoke-virtual {p0, v0}, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->c(Ljava/lang/String;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/support/v7/widget/RecyclerView;

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->b:Landroid/support/v7/widget/RecyclerView;

    new-instance v0, Landroid/support/v7/widget/LinearLayoutManager;

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->o()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/support/v7/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/support/v7/widget/LinearLayoutManager;->setOrientation(I)V

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->b:Landroid/support/v7/widget/RecyclerView;

    invoke-virtual {v1, v0}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V

    return-void
.end method

.method protected c()V
    .registers 3

    invoke-super {p0}, Lcom/kwad/sdk/contentalliance/tube/profile/a/a;->c()V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->a:Lcom/kwad/sdk/contentalliance/tube/profile/a/b;

    iget-object v0, v0, Lcom/kwad/sdk/contentalliance/tube/profile/a/b;->e:Ljava/util/Set;

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/tube/profile/b/g;->g:Lcom/kwad/sdk/contentalliance/tube/profile/e;

    invoke-interface {v0, v1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    return-void
.end method