UserProfileFragment$18.smali

.class final Lcom/imo/android/imoim/profile/UserProfileFragment$18;
.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/UserProfileFragment;->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/UserProfileFragment;


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

    .line 439
    iput-object p1, p0, Lcom/imo/android/imoim/profile/UserProfileFragment$18;->a:Lcom/imo/android/imoim/profile/UserProfileFragment;

    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 442
    iget-object v0, p0, Lcom/imo/android/imoim/profile/UserProfileFragment$18;->a:Lcom/imo/android/imoim/profile/UserProfileFragment;

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

    move-result-object v0

    return-object v0
.end method

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

    .line 450
    iget-object v0, p0, Lcom/imo/android/imoim/profile/UserProfileFragment$18;->a:Lcom/imo/android/imoim/profile/UserProfileFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/profile/UserProfileFragment;->e(Lcom/imo/android/imoim/profile/UserProfileFragment;)Lcom/imo/android/imoim/profile/viewmodel/user/b;

    move-result-object v0

    invoke-interface {v0}, Lcom/imo/android/imoim/profile/viewmodel/user/b;->c()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 451
    iget-object v0, p0, Lcom/imo/android/imoim/profile/UserProfileFragment$18;->a:Lcom/imo/android/imoim/profile/UserProfileFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/profile/UserProfileFragment;->e(Lcom/imo/android/imoim/profile/UserProfileFragment;)Lcom/imo/android/imoim/profile/viewmodel/user/b;

    move-result-object v0

    invoke-interface {v0}, Lcom/imo/android/imoim/profile/viewmodel/user/b;->c()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 453
    :goto_24
    iget-object v1, p0, Lcom/imo/android/imoim/profile/UserProfileFragment$18;->a:Lcom/imo/android/imoim/profile/UserProfileFragment;

    invoke-static {v1}, Lcom/imo/android/imoim/profile/UserProfileFragment;->f(Lcom/imo/android/imoim/profile/UserProfileFragment;)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 454
    iget-object v0, p0, Lcom/imo/android/imoim/profile/UserProfileFragment$18;->a:Lcom/imo/android/imoim/profile/UserProfileFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/profile/UserProfileFragment;->g(Lcom/imo/android/imoim/profile/UserProfileFragment;)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

    .line 455
    invoke-static {}, Lcom/imo/android/imoim/world/util/ad;->c()Z

    move-result v0

    if-eqz v0, :cond_49

    .line 456
    iget-object v0, p0, Lcom/imo/android/imoim/profile/UserProfileFragment$18;->a:Lcom/imo/android/imoim/profile/UserProfileFragment;

    iget-object v0, v0, Lcom/imo/android/imoim/profile/UserProfileFragment;->U:Landroid/view/View;

    if-eqz p1, :cond_45

    const/16 v1, 0x8

    goto :goto_46

    :cond_45
    const/4 v1, 0x0

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

    :cond_49
    if-eqz p1, :cond_69

    .line 459
    iget-object p1, p0, Lcom/imo/android/imoim/profile/UserProfileFragment$18;->a:Lcom/imo/android/imoim/profile/UserProfileFragment;

    invoke-virtual {p1}, Lcom/imo/android/imoim/profile/UserProfileFragment;->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/UserProfileFragment$18;->a:Lcom/imo/android/imoim/profile/UserProfileFragment;

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

    move-result-object v1

    const v2, 0x7f060410

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

    move-result v1

    .line 459
    invoke-static {p1, v0, v1}, Lcom/imo/android/imoim/profile/UserProfileFragment;->a(Lcom/imo/android/imoim/profile/UserProfileFragment;II)V

    return-void

    .line 462
    :cond_69
    iget-object p1, p0, Lcom/imo/android/imoim/profile/UserProfileFragment$18;->a:Lcom/imo/android/imoim/profile/UserProfileFragment;

    invoke-virtual {p1}, Lcom/imo/android/imoim/profile/UserProfileFragment;->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/UserProfileFragment$18;->a:Lcom/imo/android/imoim/profile/UserProfileFragment;

    .line 463
    invoke-virtual {v1}, Lcom/imo/android/imoim/profile/UserProfileFragment;->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

    .line 462
    invoke-static {p1, v0, v1}, Lcom/imo/android/imoim/profile/UserProfileFragment;->a(Lcom/imo/android/imoim/profile/UserProfileFragment;II)V

    return-void
.end method