ProfileIntroduceComponent.smali

.class public Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;
.super Lcom/imo/android/imoim/profile/component/BaseProfileComponent;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/imo/android/imoim/profile/component/BaseProfileComponent<",
        "Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;",
        ">;"
    }
.end annotation


# instance fields
.field private b:Landroid/view/View;

.field private c:Landroidx/recyclerview/widget/RecyclerView;

.field private d:Landroid/view/View;

.field private e:Landroid/view/View;

.field private f:Ljava/lang/String;

.field private g:Lcom/imo/android/imoim/profile/introduction/adapter/ProfilePerIntroAdapter;

.field private h:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/imo/android/imoim/profile/introduction/a/a;",
            ">;"
        }
    .end annotation
.end field

.field private i:Landroidx/lifecycle/LiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/LiveData<",
            "Lcom/imo/android/imoim/profile/viewmodel/b;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Lcom/imo/android/core/component/c;Landroid/view/View;ZLjava/lang/String;Landroidx/lifecycle/LiveData;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/imo/android/core/component/c;",
            "Landroid/view/View;",
            "Z",
            "Ljava/lang/String;",
            "Landroidx/lifecycle/LiveData<",
            "Lcom/imo/android/imoim/profile/viewmodel/b;",
            ">;)V"
        }
    .end annotation

    .line 43
    invoke-direct {p0, p1, p2, p3}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;-><init>(Lcom/imo/android/core/component/c;Landroid/view/View;Z)V

    .line 44
    iput-object p4, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->f:Ljava/lang/String;

    .line 45
    iput-object p5, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->i:Landroidx/lifecycle/LiveData;

    return-void
.end method

.method static synthetic a(Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;Ljava/util/List;)Ljava/util/List;
    .registers 2

    .line 30
    iput-object p1, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->h:Ljava/util/List;

    return-object p1
.end method

.method static synthetic a(Landroid/view/View;)V
    .registers 2

    const/16 v0, 0x8

    .line 30
    invoke-static {p0, v0}, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->a(Landroid/view/View;I)V

    return-void
.end method

.method static synthetic a(Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;)V
    .registers 4

    .line 1137
    iget-object v0, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->h:Ljava/util/List;

    if-eqz v0, :cond_24

    .line 2034
    invoke-virtual {p0}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;->x()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    .line 1138
    iget-object v1, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->f:Ljava/lang/String;

    iget-object v2, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->h:Ljava/util/List;

    invoke-static {v2}, Lcom/imo/android/imoim/util/common/i;->a(Ljava/util/Collection;)Z

    move-result v2

    invoke-static {v0, v1, v2}, Lcom/imo/android/imoim/profile/introduction/view/IntroductionActivity;->a(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 2038
    invoke-static {}, Lcom/imo/android/imoim/profile/a/d$a;->a()Lcom/imo/android/imoim/profile/a/d;

    move-result-object v0

    .line 1139
    iget-object p0, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->h:Ljava/util/List;

    invoke-static {p0}, Lcom/imo/android/imoim/util/common/i;->a(Ljava/util/Collection;)Z

    move-result p0

    xor-int/lit8 p0, p0, 0x1

    const-string v1, "introduction"

    invoke-virtual {v0, v1, p0}, Lcom/imo/android/imoim/profile/a/d;->a(Ljava/lang/String;Z)V

    :cond_24
    return-void
.end method

.method static synthetic b(Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;)Ljava/util/List;
    .registers 1

    .line 30
    iget-object p0, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->h:Ljava/util/List;

    return-object p0
.end method

.method static synthetic b(Landroid/view/View;)V
    .registers 2

    const/4 v0, 0x0

    .line 30
    invoke-static {p0, v0}, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->a(Landroid/view/View;I)V

    return-void
.end method

.method static synthetic b(Landroid/view/View;I)V
    .registers 3

    .line 2114
    invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    .line 2115
    invoke-static {p1}, Lcom/imo/android/imoim/util/ay;->a(I)I

    move-result p1

    iput p1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 2116
    invoke-virtual {p0, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method static synthetic c(Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;)Landroidx/recyclerview/widget/RecyclerView;
    .registers 1

    .line 30
    iget-object p0, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->c:Landroidx/recyclerview/widget/RecyclerView;

    return-object p0
.end method

.method static synthetic d(Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;)Lcom/imo/android/imoim/profile/introduction/adapter/ProfilePerIntroAdapter;
    .registers 1

    .line 30
    iget-object p0, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->g:Lcom/imo/android/imoim/profile/introduction/adapter/ProfilePerIntroAdapter;

    return-object p0
.end method

.method static synthetic e(Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;)Z
    .registers 1

    .line 30
    iget-boolean p0, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->L:Z

    return p0
.end method

.method static synthetic f(Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;)Landroid/view/View;
    .registers 1

    .line 30
    iget-object p0, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->b:Landroid/view/View;

    return-object p0
.end method

.method static synthetic g(Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;)Landroid/view/View;
    .registers 1

    .line 30
    iget-object p0, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->d:Landroid/view/View;

    return-object p0
.end method

.method static synthetic h(Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;)Landroid/view/View;
    .registers 1

    .line 30
    iget-object p0, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->e:Landroid/view/View;

    return-object p0
.end method


# virtual methods
.method public final b()V
    .registers 2

    const v0, 0x7f090b82

    .line 50
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->a(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->b:Landroid/view/View;

    const v0, 0x7f090f2c

    .line 51
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->a(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroidx/recyclerview/widget/RecyclerView;

    iput-object v0, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->c:Landroidx/recyclerview/widget/RecyclerView;

    const v0, 0x7f09003d

    .line 52
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->a(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->d:Landroid/view/View;

    const v0, 0x7f090042

    .line 53
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->a(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->e:Landroid/view/View;

    return-void
.end method

.method public final c()V
    .registers 6

    .line 58
    iget-boolean v0, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->L:Z

    if-eqz v0, :cond_13

    const v0, 0x7f090b82

    .line 59
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->a(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent$1;

    invoke-direct {v1, p0}, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent$1;-><init>(Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;)V

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

    :cond_13
    const v0, 0x7f0912cc

    .line 67
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->a(I)Landroid/view/View;

    move-result-object v0

    .line 68
    new-instance v1, Lcom/imo/android/imoim/profile/introduction/adapter/ProfilePerIntroAdapter;

    invoke-virtual {p0}, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->x()Landroidx/fragment/app/FragmentActivity;

    move-result-object v2

    const/4 v3, 0x0

    invoke-direct {v1, v2, v3}, Lcom/imo/android/imoim/profile/introduction/adapter/ProfilePerIntroAdapter;-><init>(Landroid/content/Context;Z)V

    iput-object v1, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->g:Lcom/imo/android/imoim/profile/introduction/adapter/ProfilePerIntroAdapter;

    .line 69
    iget-object v1, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->c:Landroidx/recyclerview/widget/RecyclerView;

    new-instance v2, Landroidx/recyclerview/widget/LinearLayoutManager;

    invoke-virtual {p0}, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->x()Landroidx/fragment/app/FragmentActivity;

    move-result-object v4

    invoke-direct {v2, v4}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, v2}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 70
    iget-object v1, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->c:Landroidx/recyclerview/widget/RecyclerView;

    iget-object v2, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->g:Lcom/imo/android/imoim/profile/introduction/adapter/ProfilePerIntroAdapter;

    invoke-virtual {v1, v2}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    const v1, 0x7f0900bc

    .line 71
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    iget-boolean v2, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->L:Z

    if-eqz v2, :cond_47

    goto :goto_49

    :cond_47
    const/16 v3, 0x8

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

    .line 73
    iget-object v1, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->i:Landroidx/lifecycle/LiveData;

    new-instance v2, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent$2;

    invoke-direct {v2, p0, v0}, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent$2;-><init>(Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;Landroid/view/View;)V

    invoke-virtual {v1, p0, v2}, Landroidx/lifecycle/LiveData;->observe(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Observer;)V

    return-void
.end method

.method public final c(Landroidx/lifecycle/LifecycleOwner;)V
    .registers 3

    .line 121
    invoke-super {p0, p1}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;->c(Landroidx/lifecycle/LifecycleOwner;)V

    .line 122
    iget-object p1, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->c:Landroidx/recyclerview/widget/RecyclerView;

    new-instance v0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent$3;

    invoke-direct {v0, p0}, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent$3;-><init>(Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;)V

    invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public final d()Ljava/lang/Class;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/lang/Class<",
            "Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;",
            ">;"
        }
    .end annotation

    .line 145
    const-class v0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;

    return-object v0
.end method

.method public final d(Landroidx/lifecycle/LifecycleOwner;)V
    .registers 3

    .line 132
    invoke-super {p0, p1}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;->d(Landroidx/lifecycle/LifecycleOwner;)V

    .line 133
    iget-object p1, p0, Lcom/imo/android/imoim/profile/introduction/ProfileIntroduceComponent;->c:Landroidx/recyclerview/widget/RecyclerView;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutFrozen(Z)V

    return-void
.end method