MyProfileFragment$8.smali

.class final Lcom/imo/android/imoim/profile/MyProfileFragment$8;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent$a;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/imo/android/imoim/profile/MyProfileFragment;->a(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/profile/MyProfileFragment;


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/profile/MyProfileFragment;)V
    .registers 2

    .line 340
    iput-object p1, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$8;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

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

    return-void
.end method


# virtual methods
.method public final a()Lcom/imo/android/imoim/biggroup/view/groupbadge/GroupBadgeView;
    .registers 2

    .line 343
    iget-object v0, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$8;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->c(Lcom/imo/android/imoim/profile/MyProfileFragment;)Lcom/imo/android/imoim/biggroup/view/groupbadge/GroupBadgeView;

    move-result-object v0

    return-object v0
.end method

.method public final a(Z)V
    .registers 6

    .line 351
    iget-object v0, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$8;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->d(Lcom/imo/android/imoim/profile/MyProfileFragment;)Lcom/imo/android/imoim/profile/viewmodel/me/a;

    move-result-object v0

    invoke-interface {v0}, Lcom/imo/android/imoim/profile/viewmodel/me/a;->g()Landroidx/lifecycle/LiveData;

    move-result-object v0

    invoke-static {v0}, Lcom/imo/android/common/mvvm/BaseViewModel;->a(Landroidx/lifecycle/LiveData;)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_23

    .line 352
    iget-object v0, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$8;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->d(Lcom/imo/android/imoim/profile/MyProfileFragment;)Lcom/imo/android/imoim/profile/viewmodel/me/a;

    move-result-object v0

    invoke-interface {v0}, Lcom/imo/android/imoim/profile/viewmodel/me/a;->g()Landroidx/lifecycle/LiveData;

    move-result-object v0

    invoke-virtual {v0}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/imo/android/imoim/profile/viewmodel/b;

    .line 1069
    iget-object v0, v0, Lcom/imo/android/imoim/profile/viewmodel/b;->b:Lcom/imo/android/imoim/profile/signature/e;

    goto :goto_24

    :cond_23
    const/4 v0, 0x0

    .line 354
    :goto_24
    iget-object v1, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$8;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-static {v1}, Lcom/imo/android/imoim/profile/MyProfileFragment;->e(Lcom/imo/android/imoim/profile/MyProfileFragment;)Lcom/imo/android/imoim/profile/signature/ProfileSignatureComponent;

    move-result-object v1

    invoke-virtual {v1, v0, p1}, Lcom/imo/android/imoim/profile/signature/ProfileSignatureComponent;->a(Lcom/imo/android/imoim/profile/signature/e;Z)V

    .line 355
    iget-object v0, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$8;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->f(Lcom/imo/android/imoim/profile/MyProfileFragment;)Lcom/imo/android/imoim/profile/component/ProfileAlbumComponent;

    move-result-object v0

    .line 1194
    iget-boolean v1, v0, Lcom/imo/android/imoim/profile/component/ProfileAlbumComponent;->d:Z

    const v2, 0x7f060410

    if-nez v1, :cond_7b

    iget-object v1, v0, Lcom/imo/android/imoim/profile/component/ProfileAlbumComponent;->b:Landroid/widget/RelativeLayout;

    if-eqz v1, :cond_7b

    iget-object v1, v0, Lcom/imo/android/imoim/profile/component/ProfileAlbumComponent;->c:Landroid/widget/TextView;

    if-eqz v1, :cond_7b

    if-eqz p1, :cond_48

    const v1, 0x7f0807b4

    goto :goto_4b

    :cond_48
    const v1, 0x7f0807b3

    .line 1196
    :goto_4b
    iget-object v3, v0, Lcom/imo/android/imoim/profile/component/ProfileAlbumComponent;->b:Landroid/widget/RelativeLayout;

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

    if-eqz p1, :cond_56

    const v1, 0x7f060410

    goto :goto_59

    :cond_56
    const v1, 0x7f060119

    .line 1199
    :goto_59
    iget-object v3, v0, Lcom/imo/android/imoim/profile/component/ProfileAlbumComponent;->c:Landroid/widget/TextView;

    invoke-static {v1}, Lsg/bigo/mobile/android/aab/c/b;->b(I)I

    move-result v1

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

    if-eqz p1, :cond_68

    const v1, 0x7f080a84

    goto :goto_6b

    :cond_68
    const v1, 0x7f080928

    .line 1202
    :goto_6b
    iget-object v0, v0, Lcom/imo/android/imoim/profile/component/ProfileAlbumComponent;->b:Landroid/widget/RelativeLayout;

    const v3, 0x7f0907ff

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

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    if-eqz v0, :cond_7b

    .line 1203
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 356
    :cond_7b
    iget-object v0, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$8;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->f(Lcom/imo/android/imoim/profile/MyProfileFragment;)Lcom/imo/android/imoim/profile/component/ProfileAlbumComponent;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/imo/android/imoim/profile/component/ProfileAlbumComponent;->b(Z)V

    if-eqz p1, :cond_a4

    .line 359
    iget-object p1, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$8;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-virtual {p1}, Lcom/imo/android/imoim/profile/MyProfileFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f060418

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getColor(I)I

    move-result v0

    iget-object v1, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$8;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    .line 360
    invoke-virtual {v1}, Lcom/imo/android/imoim/profile/MyProfileFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    const v2, 0x7f080547

    .line 359
    invoke-static {p1, v0, v1, v2}, Lcom/imo/android/imoim/profile/MyProfileFragment;->a(Lcom/imo/android/imoim/profile/MyProfileFragment;III)V

    return-void

    .line 362
    :cond_a4
    iget-object p1, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$8;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-virtual {p1}, Lcom/imo/android/imoim/profile/MyProfileFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f060147

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getColor(I)I

    move-result v0

    iget-object v1, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$8;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    .line 363
    invoke-virtual {v1}, Lcom/imo/android/imoim/profile/MyProfileFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f060145

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    const v2, 0x7f080545

    .line 362
    invoke-static {p1, v0, v1, v2}, Lcom/imo/android/imoim/profile/MyProfileFragment;->a(Lcom/imo/android/imoim/profile/MyProfileFragment;III)V

    return-void
.end method